aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-11-21 02:54:44 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-11-21 02:54:44 +0000
commitc2f1730e1739cd53ab20a824a1d16276da325e01 (patch)
tree7e20b1b20c576ed879f94234f62fde2bcc6c24ab /lib
parent8d17117683226e90b8854fc7e5f99fe7cacae591 (diff)
schannel: Corrected copy/paste error in commit 8d17117683
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;