mirror of
https://github.com/reactos/wine.git
synced 2024-12-11 13:26:00 +00:00
advapi32: Don't test the contents of memory outside of a valid block of memory.
This commit is contained in:
parent
211e4fc0fe
commit
8bfc736561
@ -3209,7 +3209,7 @@ static void test_GetSidSubAuthority(void)
|
||||
ok(*pGetSidSubAuthority(psid,1) == 93476,"GetSidSubAuthority gave %d expected 93476\n",*pGetSidSubAuthority(psid,1));
|
||||
ok(GetLastError() == 0,"GetLastError returned %d instead of 0\n",GetLastError());
|
||||
SetLastError(0xbebecaca);
|
||||
todo_wine ok(*pGetSidSubAuthority(psid,4) == 0,"GetSidSubAuthority gave %d,expected 0\n",*pGetSidSubAuthority(psid,4));
|
||||
ok(pGetSidSubAuthority(psid,4) != NULL,"Expected out of bounds GetSidSubAuthority to return a non-NULL pointer\n");
|
||||
ok(GetLastError() == 0,"GetLastError returned %d instead of 0\n",GetLastError());
|
||||
LocalFree(psid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user