README-SDL.txt
author Ryan C. Gordon <icculus@icculus.org>
Mon, 29 Oct 2018 20:00:03 -0400
changeset 12369 68c87b40b434
parent 10892 996c14d41c46
permissions -rw-r--r--
winmain: Don't use SDL_malloc (or SDL_stack_alloc, which might be malloc).

Otherwise, we are using the allocator before the app can set up its own hooks.

Now we use VirtualAlloc, and WideCharToMultiByte (because SDL_iconv uses
SDL_malloc, too!) to get ready to call into SDL_main.

This also makes console_wmain() call into the same routines as everything
else, so we don't have to deal with those allocations, too. Hopefully we
end up with the same results from GetCommandLine() as we do in wargv.

Fixes Bugzilla #4340.
     1 
     2 Please distribute this file with the SDL runtime environment:
     3 
     4 The Simple DirectMedia Layer (SDL for short) is a cross-platform library
     5 designed to make it easy to write multi-media software, such as games
     6 and emulators.
     7 
     8 The Simple DirectMedia Layer library source code is available from:
     9 https://www.libsdl.org/
    10 
    11 This library is distributed under the terms of the zlib license:
    12 http://www.zlib.net/zlib_license.html
    13