mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Fixed warning C4244: 'function': conversion from 'SDL_ThreadID' to 'DWORD', possible loss of data
This commit is contained in:
@@ -430,7 +430,7 @@ static void SDL_StopJoystickThread(void)
|
|||||||
s_bJoystickThreadQuit = SDL_TRUE;
|
s_bJoystickThreadQuit = SDL_TRUE;
|
||||||
SDL_BroadcastCondition(s_condJoystickThread); /* signal the joystick thread to quit */
|
SDL_BroadcastCondition(s_condJoystickThread); /* signal the joystick thread to quit */
|
||||||
SDL_UnlockMutex(s_mutexJoyStickEnum);
|
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 */
|
/* Unlock joysticks while the joystick thread finishes processing messages */
|
||||||
SDL_AssertJoysticksLocked();
|
SDL_AssertJoysticksLocked();
|
||||||
|
Reference in New Issue
Block a user