SDL/src
Ryan C. Gordon 6d1ad3847a Windows GetBasePath should use GetModuleFileNameExW() and check for overflows.
Apparently you might get strange paths from GetModuleFileName(), such as
short path names or UNC filenames, so this avoids that problem. Since you have
to tapdance with linking different libraries and defining macros depending on
what Windows you plan to target, we dynamically load the API we need, which
works on all versions of Windows (on Win7, it'll load a compatibility wrapper
for the newer API location).

What a mess.

This also now does the right thing if there isn't enough space to store the
path, looping with a larger allocated buffer each try.

Fixes Bugzilla #2435.
2015-05-28 01:54:52 -04:00
..
atomic Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
audio Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
core [IBus] Only register interest in messages sent to our input context. 2015-02-27 21:17:29 +00:00
cpuinfo Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
dynapi Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
events Added some unknown keys from Japanese 106/109 keyboards (thanks, "ver0hiro"!). 2015-05-26 20:55:03 -04:00
file Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
filesystem Windows GetBasePath should use GetModuleFileNameExW() and check for overflows. 2015-05-28 01:54:52 -04:00
haptic I think this will be the time... 2015-05-28 01:27:24 -04:00
joystick Another attempt to get this to compile. 2015-05-28 01:08:33 -04:00
libm Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
loadso Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
main Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
power Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
render Drop out of SDL_UpdateTexture() early if the rectangle is zero pixels. 2015-05-26 16:42:36 -04:00
stdlib Make sure we have the vsscanf() prototype (thanks, Ozkan!). 2015-05-28 14:34:38 -04:00
test Some setups need _GNU_SOURCE to make LLONG_MAX available (thanks, Ozkan!). 2015-05-26 16:31:11 -04:00
thread Uh, yeah, it helps to press "Save" before committing... 2015-05-26 21:30:41 -04:00
timer Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
video Fixed bug 2772 - SDL2 doesn't handle X KeymapNotify events 2015-05-28 10:44:46 -07:00
SDL.c Stack hint should look for 0, not -1, and not care about environment variables. 2015-05-26 21:19:23 -04:00
SDL_assert.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_assert_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_error.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_error_c.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_hints.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_internal.h Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
SDL_log.c Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00