Revert "Use newer versionHelper API if available"

This reverts commit 0aa247dbf2.
This commit is contained in:
mazmazz 2018-12-13 18:48:14 -05:00
parent 0aa247dbf2
commit 09403328f6
3 changed files with 0 additions and 15 deletions

View file

@ -152,16 +152,11 @@ int main(int argc, char **argv)
// XP and Vista users can't use the newest exchndl.dll
// and older exchndl.dll won't work with release builds >= 2.1.21
// Check for >= Version 6.1 (>= Win7)
#if defined(_INC_VERSIONHELPERS) || defined(_versionhelpers_H_INCLUDED_)
if (IsWindows7OrGreater())
LoadLibraryA("exchndl.dll");
#else
DWORD winversion = GetVersion();
DWORD major = (DWORD)(LOBYTE(LOWORD(winversion)));
DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion)));
if (major > 6 || (major == 6 && minor > 0))
LoadLibraryA("exchndl.dll");
#endif
}
}
#ifndef __MINGW32__

View file

@ -221,16 +221,11 @@ int main(int argc, char **argv)
// XP and Vista users can't use the newest exchndl.dll
// and older exchndl.dll won't work with release builds >= 2.1.21
// Check for >= Version 6.1 (>= Win7)
#if defined(_INC_VERSIONHELPERS) || defined(_versionhelpers_H_INCLUDED_)
if (IsWindows7OrGreater())
LoadLibraryA("exchndl.dll");
#else
DWORD winversion = GetVersion();
DWORD major = (DWORD)(LOBYTE(LOWORD(winversion)));
DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion)));
if (major > 6 || (major == 6 && minor > 0))
LoadLibraryA("exchndl.dll");
#endif
}
}
#endif

View file

@ -668,16 +668,11 @@ int WINAPI WinMain (HINSTANCE hInstance,
// XP and Vista users can't use the newest exchndl.dll
// and older exchndl.dll won't work with release builds >= 2.1.21
// Check for >= Version 6.1 (Win7)
#if defined(_INC_VERSIONHELPERS) || defined(_versionhelpers_H_INCLUDED_)
if (IsWindows7OrGreater())
LoadLibraryA("exchndl.dll");
#else
DWORD winversion = GetVersion();
DWORD major = (DWORD)(LOBYTE(LOWORD(winversion)));
DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion)));
if (major > 6 || (major == 6 && minor > 0))
LoadLibraryA("exchndl.dll");
#endif
#if 0
}
#endif