1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

schannel: Fix compilation warning from commit 7a8e861a56

schannel.c:1125:5: warning: missing initializer for field 'dwMinorVersion'
                   of 'OSVERSIONINFOEX' [-Wmissing-field-initializers
This commit is contained in:
Steve Holme 2015-08-01 22:46:21 +01:00
parent c8331f515e
commit a1b2a6bd93

View File

@ -1122,7 +1122,11 @@ cleanup:
!connssl->recv_sspi_close_notify) { !connssl->recv_sspi_close_notify) {
BOOL isWin2k; BOOL isWin2k;
ULONGLONG cm; ULONGLONG cm;
OSVERSIONINFOEX osver = { sizeof osver, 5, }; OSVERSIONINFOEX osver;
memset(&osver, 0, sizeof(osver));
osver.dwOSVersionInfoSize = sizeof(osver);
osver.dwMajorVersion = 5;
cm = VerSetConditionMask(0, VER_MAJORVERSION, VER_EQUAL); cm = VerSetConditionMask(0, VER_MAJORVERSION, VER_EQUAL);
cm = VerSetConditionMask(cm, VER_MINORVERSION, VER_EQUAL); cm = VerSetConditionMask(cm, VER_MINORVERSION, VER_EQUAL);