mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 04:07:16 +00:00
[PSAPI_APITEST]
Complete the test (tested under w2k3) svn path=/trunk/; revision=60569
This commit is contained in:
parent
22175a9d82
commit
8b0bbbdc07
1 changed files with 24 additions and 0 deletions
|
@ -125,4 +125,28 @@ START_TEST(GetDeviceDriverFileName)
|
||||||
{
|
{
|
||||||
skip("Couldn't find info about ntdll.dll\n");
|
skip("Couldn't find info about ntdll.dll\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IntGetModuleInformation("msvcrt.dll", FALSE, TRUE, &ModInfo))
|
||||||
|
{
|
||||||
|
SetLastError(0xDEADBEEF);
|
||||||
|
Len = GetDeviceDriverFileNameA(ModInfo.ImageBase, FileName, 255);
|
||||||
|
ok(Len == 0, "Len: %lu\n", Len);
|
||||||
|
ok(GetLastError() == ERROR_INVALID_HANDLE, "Error: %lx\n", GetLastError());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
skip("Couldn't find info about msvcrt.dll\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (IntGetModuleInformation("psapi.dll", FALSE, TRUE, &ModInfo))
|
||||||
|
{
|
||||||
|
SetLastError(0xDEADBEEF);
|
||||||
|
Len = GetDeviceDriverFileNameA(ModInfo.ImageBase, FileName, 255);
|
||||||
|
ok(Len == 0, "Len: %lu\n", Len);
|
||||||
|
ok(GetLastError() == ERROR_INVALID_HANDLE, "Error: %lx\n", GetLastError());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
skip("Couldn't find info about psapi.dll\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue