mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-22 05:51:59 +00:00
Fixed some issues found with static analysis
This commit is contained in:
parent
218e45247f
commit
b854e1fe0b
6 changed files with 41 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue