Apply upstream fix (c5d2c51bd6) to portaudio
wasapi: Fixed OSVERSIONINFO initialization (patch provided by Carlo Bramini).
This commit is contained in:
parent
1437fb38ad
commit
50c30d9ff8
|
@ -1087,7 +1087,7 @@ static EWindowsVersion GetWindowsVersion()
|
||||||
// by GetVersion API)
|
// by GetVersion API)
|
||||||
if ((fnRtlGetVersion = (LPFN_RTLGETVERSION)GetProcAddress(GetModuleHandleA("ntdll"), "RtlGetVersion")) != NULL)
|
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"));
|
PRINT(("WASAPI: getting Windows version with RtlGetVersion()\n"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue