From c2f1730e1739cd53ab20a824a1d16276da325e01 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 21 Nov 2015 02:54:44 +0000 Subject: [PATCH] schannel: Corrected copy/paste error in commit 8d17117683 --- lib/vtls/schannel.c | 11 +++++------ 1 file 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;