From d026b74d79e06e3eb1a72db3520374f168376a7b Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 26 Nov 2008 10:44:16 +1100 Subject: [PATCH] version: Stop crash under vista and 2k8. --- dlls/version/tests/info.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/version/tests/info.c b/dlls/version/tests/info.c index fa120df0293..a4f969ecb90 100644 --- a/dlls/version/tests/info.c +++ b/dlls/version/tests/info.c @@ -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());