update gui

This commit is contained in:
Logan McNaughton committed 2021-06-02 13:58:47 -06:00
1 parent efe33134c0
commit b7acbf40c7
1 file changed
+3 -3
+3 -3
View File
@@ -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)
{