1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Apply upstream fix (c5d2c51bd6) to portaudio

wasapi: Fixed OSVERSIONINFO initialization (patch provided by Carlo Bramini).
This commit is contained in:
Leland Lucius 2020-04-02 09:45:12 -05:00
parent 1437fb38ad
commit 50c30d9ff8

View File

@ -1087,7 +1087,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"));