mirror of
https://github.com/yawut/SDL.git
synced 2026-10-01 20:56:44 -05:00
Fixed dynamic loading on Windows CE
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -93,7 +93,7 @@ void *SDL_LoadFunction(void *handle, const char *name)
|
||||
wchar_t *name_t = SDL_malloc((length + 1) * sizeof(wchar_t));
|
||||
wchar_t *errbuf_t = SDL_malloc(512 * sizeof(wchar_t));
|
||||
|
||||
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, name, -1, name_t, length);
|
||||
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, name, -1, name_t, length+1);
|
||||
|
||||
symbol = (void *)GetProcAddress((HMODULE)handle, name_t);
|
||||
if ( symbol == NULL ) {
|
||||
|
||||
Reference in New Issue
Block a user