aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/schannel.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 0e7ae6d8f..a5366e13a 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -1130,12 +1130,11 @@ cleanup:
osver.dwOSVersionInfoSize = sizeof(osver);
/* Find out the Windows version */
- if(!GetVersionEx(&osver))
- return CURLE_FAILED_INIT;
-
- /* Verify the version number is 5.0 */
- if(osver.dwMajorVersion == 5 && osver.dwMinorVersion == 0)
- isWin2k = TRUE;
+ if(GetVersionEx(&osver)) {
+ /* Verify the version number is 5.0 */
+ if(osver.dwMajorVersion == 5 && osver.dwMinorVersion == 0)
+ isWin2k = TRUE;
+ }
#else
ULONGLONG cm;
OSVERSIONINFOEX osver;