]> git.sesse.net Git - casparcg/commitdiff
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Wed, 30 Nov 2011 17:52:35 +0000 (17:52 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Wed, 30 Nov 2011 17:52:35 +0000 (17:52 +0000)
modules/bluefish/util/blue_velvet.cpp

index afc81cb9d18e8fc6dbd3d394374a82c04946723d..a651ae1d46a6e2db9fb8e5798d64b50cd56819aa 100644 (file)
@@ -23,11 +23,11 @@ void blue_velvet_initialize()
 #endif\r
        std::string sys_drive = getenv("SystemDrive");\r
 \r
-       auto module = LoadLibraryA(module_str.c_str());\r
+       auto module = LoadLibrary(widen(module_str).c_str());\r
        if(!module)\r
-               LoadLibraryA((sys_drive + "\\Program Files\\Bluefish444\\Driver\\" + module_str).c_str());\r
+               LoadLibrary(widen(sys_drive + "\\Program Files\\Bluefish444\\Driver\\" + module_str).c_str());\r
        if(!module)\r
-               LoadLibraryA((sys_drive + "\\Program Files (x86)\\BlueFish444\\Driver\\" + module_str).c_str());\r
+               LoadLibrary(widen(sys_drive + "\\Program Files (x86)\\BlueFish444\\Driver\\" + module_str).c_str());\r
        if(!module)\r
                BOOST_THROW_EXCEPTION(file_not_found() << msg_info("Could not find BlueVelvet3.dll. Required drivers are not installed."));\r
        static std::shared_ptr<void> lib(module, FreeLibrary);\r
@@ -46,11 +46,11 @@ void blue_hanc_initialize()
 \r
        std::string sys_drive = getenv("SystemDrive");\r
 \r
-       auto module = LoadLibraryA(module_str.c_str());\r
+       auto module = LoadLibrary(widen(module_str).c_str());\r
        if(!module)\r
-               LoadLibraryA((sys_drive + "\\Program Files\\Bluefish444\\Driver\\" + module_str).c_str());\r
+               LoadLibrary(widen(sys_drive + "\\Program Files\\Bluefish444\\Driver\\" + module_str).c_str());\r
        if(!module)\r
-               LoadLibraryA((sys_drive + "\\Program Files (x86)\\BlueFish444\\Driver\\" + module_str).c_str());\r
+               LoadLibrary(widen(sys_drive + "\\Program Files (x86)\\BlueFish444\\Driver\\" + module_str).c_str());\r
        if(!module)\r
                BOOST_THROW_EXCEPTION(file_not_found() << msg_info("Could not find BlueHancUtils.dll. Required drivers are not installed."));\r
        static std::shared_ptr<void> lib(module, FreeLibrary);\r