Browse Source

Fix minor GCC warning on Win32 backends

Michael Ragazzon 2 years ago
parent
commit
cfd963c465
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Backends/RmlUi_Backend_Win32_GL2.cpp
  2. 1 1
      Backends/RmlUi_Backend_Win32_VK.cpp

+ 1 - 1
Backends/RmlUi_Backend_Win32_GL2.cpp

@@ -193,7 +193,7 @@ static bool NextEvent(MSG& message, UINT timeout)
 {
 	if (timeout != 0)
 	{
-		UINT_PTR timer_id = SetTimer(NULL, NULL, timeout, NULL);
+		UINT_PTR timer_id = SetTimer(NULL, 0, timeout, NULL);
 		BOOL res = GetMessage(&message, NULL, 0, 0);
 		KillTimer(NULL, timer_id);
 		if (message.message != WM_TIMER || message.hwnd != nullptr || message.wParam != timer_id)

+ 1 - 1
Backends/RmlUi_Backend_Win32_VK.cpp

@@ -195,7 +195,7 @@ static bool NextEvent(MSG& message, UINT timeout)
 {
 	if (timeout != 0)
 	{
-		UINT_PTR timer_id = SetTimer(NULL, NULL, timeout, NULL);
+		UINT_PTR timer_id = SetTimer(NULL, 0, timeout, NULL);
 		BOOL res = GetMessage(&message, NULL, 0, 0);
 		KillTimer(NULL, timer_id);
 		if (message.message != WM_TIMER || message.hwnd != nullptr || message.wParam != timer_id)