]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.cxx
#3479 Bug compilation windows dlfcn.h include
[bbtk.git] / kernel / src / bbtkUtilities.cxx
index c7cce8103712581dc28b29f8e712352fd1266dac..85323d4b1451f65a7e6de58cef1c75f3af6459ee 100644 (file)
@@ -671,10 +671,11 @@ void wtoc(const WCHAR* Source,CHAR* Dest)
 #ifdef WIN32
 
 //2018-07-06 mingw64
-    wchar_t pname2[512];
-    long result = GetModuleFileName(NULL, pname2, pathsize);
-       crea::System::wtoc(pname2,pname);
-//    long result = GetModuleFileName(NULL, pname, pathsize);
+//2021-12-12 
+//    wchar_t pname2[512];
+//    long result = GetModuleFileName(NULL, pname2, pathsize);
+//     crea::System::wtoc(pname2,pname);
+    long result = GetModuleFileName(NULL, pname, pathsize);
     if (result > 0)
       {
        /* fix up the dir slashes... */