mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[PSAPI_APITEST]
Complete the test (tested under w2k3) svn path=/trunk/; revision=60569
This commit is contained in:
@@ -125,4 +125,28 @@ START_TEST(GetDeviceDriverFileName)
|
||||
{
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user