kernel32/tests: make sure to use return values (LLVM/Clang) (4/4)
Austin English
austinenglish at gmail.com
Thu Feb 10 15:28:07 CST 2011
--
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/tests/version.c b/dlls/kernel32/tests/version.c
index 5151170..9f9b72e 100644
--- a/dlls/kernel32/tests/version.c
+++ b/dlls/kernel32/tests/version.c
@@ -52,7 +52,7 @@ static void test_GetVersionEx(void)
if (0)
{
/* Silently crashes on XP */
- ret = GetVersionExA(NULL);
+ GetVersionExA(NULL);
}
SetLastError(0xdeadbeef);
@@ -166,6 +166,7 @@ static void test_VerifyVersionInfo(void)
ret = pVerifyVersionInfoA(&info, VER_MINORVERSION | VER_SERVICEPACKMAJOR | VER_SERVICEPACKMINOR,
pVerSetConditionMask(pVerSetConditionMask(0, VER_MINORVERSION, VER_GREATER_EQUAL),
VER_MAJORVERSION, VER_GREATER_EQUAL));
+ ok(ret, "VerifyVersionInfoA failed with error %d\n", GetLastError());
info.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
GetVersionEx((OSVERSIONINFO *)&info);
More information about the wine-patches
mailing list