mirror of
https://github.com/gwm17/glfw.git
synced 2025-01-30 19:08:51 -05:00
Win32: Fix potential buffer overrun
Found with VS static analysis.
This commit is contained in:
parent
0e74265426
commit
334a485968
|
@ -452,7 +452,7 @@ void _glfwInputErrorWin32(int error, const char* description)
|
|||
GetLastError() & 0xffff,
|
||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
buffer,
|
||||
sizeof(buffer),
|
||||
sizeof(buffer) / sizeof(WCHAR),
|
||||
NULL);
|
||||
WideCharToMultiByte(CP_UTF8, 0, buffer, -1, message, sizeof(message), NULL, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user