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

Invent a win_strerror() function which behaves as much like Unix

strerror as I can arrange, wrapping up all the ugly FormatMessage
nonsense and caching previously looked-up messages for reuse so that
callers can treat them as static.

[originally from svn r9956]
This commit is contained in:
Simon Tatham
2013-07-22 07:11:39 +00:00
parent 13667de106
commit 54693d4079
2 changed files with 64 additions and 0 deletions

View File

@ -461,6 +461,7 @@ void show_help(HWND hwnd);
extern OSVERSIONINFO osVersion;
BOOL init_winver(void);
HMODULE load_system32_dll(const char *libname);
const char *win_strerror(int error);
/*
* Exports from sizetip.c.