Changeset: 8aef246a3f78 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8aef246a3f78
Modified Files:
gdk/gdk_posix.c
Branch: Sep2022
Log Message:
Use wide character interface of LoadLibrary.
This should fix bug 7333.
diffs (17 lines):
diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c
--- a/gdk/gdk_posix.c
+++ b/gdk/gdk_posix.c
@@ -884,7 +884,12 @@ dlopen(const char *file, int mode)
{
(void) mode;
if (file != NULL) {
- return (void *) LoadLibrary(file);
+ wchar_t *wfile = utf8towchar(file);
+ if (wfile == NULL)
+ return NULL;
+ void *ret = LoadLibraryW(wfile);
+ free(wfile);
+ return ret;
}
return GetModuleHandle(NULL);
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]