1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

Glenn Maynard's patch completely disabled PuTTY{,tel} on any system

that didn't support OSVERSIONINFOEX. For example, such wildly out of
date things as NT4. Now fixed.

[originally from svn r1174]
This commit is contained in:
Simon Tatham 2001-08-04 15:45:25 +00:00
parent 02c3d0694c
commit 94d35cead5

View File

@ -170,12 +170,12 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
{
ZeroMemory(&osVersion, sizeof(osVersion));
osVersion.dwOSVersionInfoSize = sizeof(osVersion);
osVersion.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
if(!GetVersionEx ((OSVERSIONINFO *) &osVersion)) {
// If OSVERSIONINFOEX doesn't work, try OSVERSIONINFO.
osVersion.dwOSVersionInfoSize = sizeof (osVersion);
osVersion.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
if (!GetVersionEx ( (OSVERSIONINFO *) &osVersion))
return FALSE;
}