Fixed GetFileVersionInfoSizeA tests on NT.
authorStefan Leichter <Stefan.Leichter@camLine.com>
Fri, 19 Nov 2004 18:19:31 +0000 (18:19 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 19 Nov 2004 18:19:31 +0000 (18:19 +0000)
dlls/version/tests/info.c

index 9a2a6d375e281272e40b084c159cf32732010f01..bb8ff48c7c80c447e215c692a20f6cddb2af6dc6 100644 (file)
@@ -80,9 +80,9 @@ static void test_info_size(void)
     ok( retval,
        "GetFileVersionInfoSizeA result wrong! <> 0L expected, got 0x%08lx\n",
        retval);
-    ok( NO_ERROR == GetLastError(),
-       "Last error wrong! NO_ERROR expected, got 0x%08lx\n",
-       GetLastError());
+    ok((NO_ERROR == GetLastError()) || (MY_LAST_ERROR == GetLastError()),
+       "Last error wrong! NO_ERROR/0x%08lx (NT4)  expected, got 0x%08lx\n",
+       MY_LAST_ERROR, GetLastError());
 
     hdl = 0x55555555;
     SetLastError(MY_LAST_ERROR);