From: Steve Holme Date: Sat, 21 Nov 2015 02:54:44 +0000 (+0000) Subject: schannel: Corrected copy/paste error in commit 8d17117683 X-Git-Tag: curl-7_46_0~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2f1730e1739cd53ab20a824a1d16276da325e01;p=curl schannel: Corrected copy/paste error in commit 8d17117683 --- 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;