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 New Issue