version: Stop crash under vista and 2k8.

This commit is contained in:
Alistair Leslie-Hughes 2008-11-26 10:44:16 +11:00 committed by Alexandre Julliard
parent 1598779b10
commit d026b74d79
1 changed files with 5 additions and 2 deletions

View File

@ -400,8 +400,11 @@ static void test_32bit_win(void)
if (is_unicode_enabled)
{
retW = VerQueryValueW( pVersionInfoW, NULL, (LPVOID *)&pBufW, &uiLengthW );
ok (retW, "VerQueryValueW failed: GetLastError = %u\n", GetLastError());
if(0)
{ /* 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 );
ok (retW, "VerQueryValueW failed: GetLastError = %u\n", GetLastError());