Fixed dynamic loading on Windows CE
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403600
This commit is contained in:
parent
fed9a98f21
commit
6c26794172
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue