aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.c6
-rw-r--r--lib/curl_sspi.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 5cb89280c..18ac32c32 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -950,7 +950,11 @@ void Curl_sndbufset(curl_socket_t sockfd)
}
#else
ULONGLONG cm;
- OSVERSIONINFOEX osver = { sizeof osver, majorVersion, };
+ OSVERSIONINFOEX osver;
+
+ memset(&osver, 0, sizeof(osver));
+ osver.dwOSVersionInfoSize = sizeof(osver);
+ osver.dwMajorVersion = majorVersion;
cm = VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL);
cm = VerSetConditionMask(cm, VER_MINORVERSION, VER_GREATER_EQUAL);
diff --git a/lib/curl_sspi.c b/lib/curl_sspi.c
index d54587bbb..d2c37670e 100644
--- a/lib/curl_sspi.c
+++ b/lib/curl_sspi.c
@@ -94,7 +94,12 @@ CURLcode Curl_sspi_global_init(void)
securityDll = TRUE;
#else
ULONGLONG cm;
- OSVERSIONINFOEX osver = { sizeof osver, majorVersion, 0, 0, platformId, };
+ OSVERSIONINFOEX osver;
+
+ memset(&osver, 0, sizeof(osver));
+ osver.dwOSVersionInfoSize = sizeof(osver);
+ osver.dwMajorVersion = majorVersion;
+ osver.dwPlatformId = platformId;
cm = VerSetConditionMask(0, VER_MAJORVERSION, VER_EQUAL);
cm = VerSetConditionMask(cm, VER_MINORVERSION, VER_GREATER_EQUAL);