mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 13:56:00 +00:00
Fixed some issues found with static analysis
This commit is contained in:
@@ -146,7 +146,8 @@ static SDL_Mutex *SDL_CreateMutex_cs(void)
|
||||
#ifdef SDL_PLATFORM_WINRT
|
||||
InitializeCriticalSectionEx(&mutex->cs, 2000, 0);
|
||||
#else
|
||||
InitializeCriticalSectionAndSpinCount(&mutex->cs, 2000);
|
||||
// This function always succeeds
|
||||
(void)InitializeCriticalSectionAndSpinCount(&mutex->cs, 2000);
|
||||
#endif
|
||||
}
|
||||
return (SDL_Mutex *)mutex;
|
||||
|
Reference in New Issue
Block a user