mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:58:20 +00:00
psapi/tests: Add test for EnumProcessModules with NULL pointer.
This commit is contained in:
parent
c3f95eddc1
commit
9effcc98f9
|
@ -135,6 +135,11 @@ static void test_EnumProcessModules(void)
|
|||
ret = pEnumProcessModules(hpQV, NULL, 0, &cbNeeded);
|
||||
ok(ret == 1, "failed with %d\n", GetLastError());
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = pEnumProcessModules(hpQV, NULL, sizeof(HMODULE), &cbNeeded);
|
||||
ok(!ret, "succeeded\n");
|
||||
ok(GetLastError() == ERROR_NOACCESS, "expected error=ERROR_NOACCESS but got %d\n", GetLastError());
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = pEnumProcessModules(hpQV, &hMod, sizeof(HMODULE), &cbNeeded);
|
||||
if(ret != 1)
|
||||
|
|
Loading…
Reference in a new issue