diff --git a/src/sdl/i_main.c b/src/sdl/i_main.c index 66659ea6a..9b951429f 100644 --- a/src/sdl/i_main.c +++ b/src/sdl/i_main.c @@ -154,7 +154,7 @@ int main(int argc, char **argv) // Check for >= Version 6.1 (>= Win7) DWORD winversion = GetVersion(); DWORD major = (DWORD)(LOBYTE(LOWORD(winversion))); - DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); + DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); if (major > 6 || (major == 6 && minor > 0)) LoadLibraryA("exchndl.dll"); } diff --git a/src/sdl12/i_main.c b/src/sdl12/i_main.c index 8737c5755..6494564d4 100644 --- a/src/sdl12/i_main.c +++ b/src/sdl12/i_main.c @@ -223,7 +223,7 @@ int main(int argc, char **argv) // Check for >= Version 6.1 (>= Win7) DWORD winversion = GetVersion(); DWORD major = (DWORD)(LOBYTE(LOWORD(winversion))); - DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); + DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); if (major > 6 || (major == 6 && minor > 0)) LoadLibraryA("exchndl.dll"); } diff --git a/src/win32/win_main.c b/src/win32/win_main.c index 1e5c3fc46..3da9e89ae 100644 --- a/src/win32/win_main.c +++ b/src/win32/win_main.c @@ -670,7 +670,7 @@ int WINAPI WinMain (HINSTANCE hInstance, // Check for >= Version 6.1 (Win7) DWORD winversion = GetVersion(); DWORD major = (DWORD)(LOBYTE(LOWORD(winversion))); - DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); + DWORD minor = (DWORD)(HIBYTE(LOWORD(winversion))); if (major > 6 || (major == 6 && minor > 0)) LoadLibraryA("exchndl.dll"); #if 0