Skip to content

Commit

Permalink
Load wchar path
Browse files Browse the repository at this point in the history
  • Loading branch information
danoli3 committed Jul 26, 2024
1 parent b86fa1d commit a03ea3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/FreeImage/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ FreeImage_RegisterLocalPlugin(FI_InitProc proc_address, const char *format, cons
FREE_IMAGE_FORMAT DLL_CALLCONV
FreeImage_RegisterExternalPlugin(const wchar_t *path, const char *format, const char *description, const char *extension, const char *regexpr) {
if (path != NULL) {
HINSTANCE instance = LoadLibrary(path);
HINSTANCE instance = LoadLibraryW(path);

if (instance != NULL) {
FARPROC proc_address = GetProcAddress(instance, "_Init@8");
Expand Down

0 comments on commit a03ea3d

Please sign in to comment.