Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

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

Please sign in to comment.