mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-17 16:58:13 +00:00
Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!)
Closes https://github.com/libsdl-org/SDL/pull/5811
This commit is contained in:
@@ -287,7 +287,7 @@ SDL_CreateMutex(void)
|
||||
}
|
||||
|
||||
/* Copy instead of using pointer to save one level of indirection */
|
||||
SDL_memcpy(&SDL_mutex_impl_active, impl, sizeof(SDL_mutex_impl_active));
|
||||
SDL_copyp(&SDL_mutex_impl_active, impl);
|
||||
}
|
||||
return SDL_mutex_impl_active.Create();
|
||||
}
|
||||
|
Reference in New Issue
Block a user