Fixed warning C4244: 'function': conversion from 'SDL_ThreadID' to 'DWORD', possible loss of data

main
Sam Lantinga 2024-01-19 06:28:54 -08:00
parent f86b3ac605
commit 1dbe54c4e6
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ static void SDL_StopJoystickThread(void)
s_bJoystickThreadQuit = SDL_TRUE;
SDL_BroadcastCondition(s_condJoystickThread); /* signal the joystick thread to quit */
SDL_UnlockMutex(s_mutexJoyStickEnum);
PostThreadMessage(SDL_GetThreadID(s_joystickThread), WM_QUIT, 0, 0);
PostThreadMessage((DWORD)SDL_GetThreadID(s_joystickThread), WM_QUIT, 0, 0);
/* Unlock joysticks while the joystick thread finishes processing messages */
SDL_AssertJoysticksLocked();