mirror of
https://github.com/gwm17/glfw.git
synced 2025-02-07 06:38:50 -05:00
Win32: Fix VC++ warning
This commit is contained in:
parent
c54b5da403
commit
a44f2c0e65
|
@ -703,7 +703,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
GetRawInputData(ri, RID_INPUT, NULL, &size, sizeof(RAWINPUTHEADER));
|
GetRawInputData(ri, RID_INPUT, NULL, &size, sizeof(RAWINPUTHEADER));
|
||||||
if (size > _glfw.win32.rawInputSize)
|
if (size > (UINT) _glfw.win32.rawInputSize)
|
||||||
{
|
{
|
||||||
free(_glfw.win32.rawInput);
|
free(_glfw.win32.rawInput);
|
||||||
_glfw.win32.rawInput = calloc(size, 1);
|
_glfw.win32.rawInput = calloc(size, 1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user