wasapi: Fixed OSVERSIONINFO initialization (patch provided by Carlo Bramini).

This commit is contained in:
dmitrykos 2020-03-26 20:05:53 +02:00
commit 799a6834a5

View file

@ -1081,7 +1081,7 @@ static EWindowsVersion GetWindowsVersion()
// by GetVersion API)
if ((fnRtlGetVersion = (LPFN_RTLGETVERSION)GetProcAddress(GetModuleHandleA("ntdll"), "RtlGetVersion")) != NULL)
{
OSVERSIONINFOW ver = { sizeof(OSVERSIONINFOW), 0, 0, 0, {0} };
OSVERSIONINFOW ver = { sizeof(OSVERSIONINFOW), 0, 0, 0, 0, {0} };
PRINT(("WASAPI: getting Windows version with RtlGetVersion()\n"));