mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
add check to GetVersion functions
This commit is contained in:
parent
e3993518c7
commit
560a7e6a20
@ -1570,7 +1570,7 @@ DWORD WINAPI fake_GetVersion()
|
||||
|
||||
BOOL WINAPI fake_GetVersionExA(LPOSVERSIONINFOA info)
|
||||
{
|
||||
if (info && info->dwOSVersionInfoSize == sizeof(OSVERSIONINFOA))
|
||||
if (g_config.win_version[0] && info && info->dwOSVersionInfoSize == sizeof(OSVERSIONINFOA))
|
||||
{
|
||||
if (_strcmpi(g_config.win_version, "95") == 0)
|
||||
{
|
||||
@ -1603,7 +1603,7 @@ BOOL WINAPI fake_GetVersionExA(LPOSVERSIONINFOA info)
|
||||
}
|
||||
}
|
||||
|
||||
if (info && info->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA))
|
||||
if (g_config.win_version[0] && info && info->dwOSVersionInfoSize == sizeof(OSVERSIONINFOEXA))
|
||||
{
|
||||
LPOSVERSIONINFOEXA ex = (LPOSVERSIONINFOEXA)info;
|
||||
if (_strcmpi(g_config.win_version, "95") == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user