mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-11 15:45:29 +00:00
Otherwise, this will crash if the app sets its own SDL_malloc allocator, since SDL_iconv uses SDL_malloc. WideCharToMultibyte lets us calculate the needed memory for the argv[] string conversions, and then we use the win32 HeapAlloc() API to get some memory for it. Fixes #8967.