Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed dynamic loading on Windows CE
  • Loading branch information
slouken committed May 7, 2009
1 parent 4a3355c commit 75394ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loadso/win32/SDL_sysloadso.c
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 75394ce

Please sign in to comment.