From b7acbf40c7a147afba048cd9691658b17c869b93 Mon Sep 17 00:00:00 2001 From: Logan McNaughton Date: Wed, 2 Jun 2021 13:58:47 -0600 Subject: [PATCH] update gui --- mupen64plus-gui/osal/osal_dynamiclib_win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mupen64plus-gui/osal/osal_dynamiclib_win32.c b/mupen64plus-gui/osal/osal_dynamiclib_win32.c index c940fc6..004aec6 100644 --- a/mupen64plus-gui/osal/osal_dynamiclib_win32.c +++ b/mupen64plus-gui/osal/osal_dynamiclib_win32.c @@ -32,9 +32,9 @@ m64p_error osal_dynlib_open(m64p_dynlib_handle *pLibHandle, const char *pccLibra if (pLibHandle == NULL || pccLibraryPath == NULL) return M64ERR_INPUT_ASSERT; - wchar_t wstr[256]; - MultiByteToWideChar(CP_UTF8, 0, pccLibraryPath, -1, &wstr[0], 256); - *pLibHandle = LoadLibrary(wstr); + wchar_t wstr[1024]; + MultiByteToWideChar(CP_UTF8, 0, pccLibraryPath, -1, wstr, 1024); + *pLibHandle = LoadLibraryW(wstr); if (*pLibHandle == NULL) {