1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 12:02:47 -05:00

Fix Windows warning about GetVersionEx deprecation.

Rather than squelching the warning, I'm actually paying attention to
the deprecation, in that I'm allowing for the possibility that the
function might stop existing or stop returning success.
This commit is contained in:
Simon Tatham
2018-06-03 15:05:44 +01:00
parent f1fae1bfaa
commit 869a0f5f71
6 changed files with 52 additions and 36 deletions

View File

@ -521,9 +521,9 @@ void show_help(HWND hwnd);
/*
* Exports from winmisc.c.
*/
extern OSVERSIONINFO osVersion;
GLOBAL DWORD osMajorVersion, osMinorVersion, osPlatformId;
void init_winver(void);
void dll_hijacking_protection(void);
BOOL init_winver(void);
HMODULE load_system32_dll(const char *libname);
const char *win_strerror(int error);
void restrict_process_acl(void);