Fix FormatMessage warnings for Windows.
From the FormatMessage() Win32 API documentation: "The lpBuffer parameter is a pointer to an LPTSTR; you must cast the pointer to an LPTSTR (for example, (LPTSTR)&lpBuffer)." https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-formatmessage#parameters This commit fixes warnings like these: warning C4047: 'function': 'LPSTR' differs in levels of indirection from 'char **' warning C4024: 'FormatMessageA': different types for formal and actual parameter 5 Signed-off-by: Sigmund Vik <sigmund_vik@yahoo.com>pull/1769/head
parent
a75d574870
commit
5481575f8b
Loading…
Reference in New Issue