From fe97387bd8e215e0b19def963f5c7238c2e1fc34 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Sun, 13 Jan 2013 05:26:15 +0000 Subject: [PATCH] Leland's patch for Win Vista or greater detection --- lib-src/portmixer/src/px_win_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib-src/portmixer/src/px_win_common.c b/lib-src/portmixer/src/px_win_common.c index 714c02b05..74bb80c70 100644 --- a/lib-src/portmixer/src/px_win_common.c +++ b/lib-src/portmixer/src/px_win_common.c @@ -72,7 +72,7 @@ static void dprintf(const char *format, ...) // so check for it at runtime. However, post 2.0, this can be deleted // since pre-Win2k support will be dropped. #define VerSetConditionMask VerSetConditionMaskThunk -LONGLONG +ULONGLONG VerSetConditionMaskThunk(ULONGLONG ConditionMask, DWORD TypeMask, BYTE Condition) @@ -80,9 +80,9 @@ VerSetConditionMaskThunk(ULONGLONG ConditionMask, // The VerifyVersionInfo() function did not appear until Windows 2000, // so check for it at runtime. However, post 2.0, this can be dropped // since pre-Win2k support will be dropped. - typedef BOOL (WINAPI *versetconditionask)(ULONGLONG ConditionMask, - DWORD TypeMask, - BYTE Condition); + typedef ULONGLONG (WINAPI *versetconditionask)(ULONGLONG ConditionMask, + DWORD TypeMask, + BYTE Condition); versetconditionask vscm = (versetconditionask) GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "VerSetConditionMask");