diff options
Diffstat (limited to 'source/blender/blenlib/intern/dynlib.c')
-rw-r--r-- | source/blender/blenlib/intern/dynlib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/dynlib.c b/source/blender/blenlib/intern/dynlib.c index 0bfa5e79eb8..c23feb975df 100644 --- a/source/blender/blenlib/intern/dynlib.c +++ b/source/blender/blenlib/intern/dynlib.c @@ -44,11 +44,17 @@ struct DynamicLibrary { #ifdef WIN32 #include <windows.h> +#include "utf_winfunc.h" +#include "utfconv.h" DynamicLibrary *BLI_dynlib_open(char *name) { DynamicLibrary *lib; - void *handle= LoadLibrary(name); + void *handle; + + UTF16_ENCODE(name); + handle= LoadLibraryW(name_16); + UTF16_UN_ENCODE(name); if(!handle) return NULL; |