Commit d026b74d authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

version: Stop crash under vista and 2k8.

parent 1598779b
...@@ -400,8 +400,11 @@ static void test_32bit_win(void) ...@@ -400,8 +400,11 @@ static void test_32bit_win(void)
if (is_unicode_enabled) if (is_unicode_enabled)
{ {
retW = VerQueryValueW( pVersionInfoW, NULL, (LPVOID *)&pBufW, &uiLengthW ); if(0)
ok (retW, "VerQueryValueW failed: GetLastError = %u\n", GetLastError()); { /* This causes Vista and w2k8 to crash */
retW = VerQueryValueW( pVersionInfoW, NULL, (LPVOID *)&pBufW, &uiLengthW );
ok (retW, "VerQueryValueW failed: GetLastError = %u\n", GetLastError());
}
retW = VerQueryValueW( pVersionInfoW, emptyW, (LPVOID *)&pBufW, &uiLengthW ); retW = VerQueryValueW( pVersionInfoW, emptyW, (LPVOID *)&pBufW, &uiLengthW );
ok (retW, "VerQueryValueW failed: GetLastError = %u\n", GetLastError()); ok (retW, "VerQueryValueW failed: GetLastError = %u\n", GetLastError());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment