Author: pschweitzer
Date: Mon Oct  7 06:16:19 2013
New Revision: 60569
URL: 
http://svn.reactos.org/svn/reactos?rev=60569&view=rev
Log:
[PSAPI_APITEST]
Complete the test (tested under w2k3)
Modified:
    trunk/rostests/apitests/psapi/psapi.c
Modified: trunk/rostests/apitests/psapi/psapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/psapi/psapi.c?re…
==============================================================================
--- trunk/rostests/apitests/psapi/psapi.c       [iso-8859-1] (original)
+++ trunk/rostests/apitests/psapi/psapi.c       [iso-8859-1] Mon Oct  7 06:16:19 2013
@@ -125,4 +125,28 @@
     {
         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");
+    }
 }