]> Creatis software - creaMaracasVisu.git/commitdiff
#3207 creaMaracasVisu Feature New Normal branch vtk7itk4wx3-mingw
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 25 Jul 2018 11:36:48 +0000 (13:36 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 25 Jul 2018 11:36:48 +0000 (13:36 +0200)
lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx

index 50bea15fde84b4aa28aef13a382bd61c846bc177..ecd2b970cd9fb07227fd36675a537b3a02bb24d4 100644 (file)
@@ -93,7 +93,12 @@ wxString getExecutablePath()
     char* slash;
 
 #if defined(WIN32)
-    GetModuleFileName(NULL, buf, 511);
+
+    wchar_t buf2[512];
+    long result = GetModuleFileName(NULL, buf2, pathsize);
+       int ret = wcstombs ( buf, buf2, sizeof(pname) );        
+//    GetModuleFileName(NULL, buf, 511);
+
     slash = strrchr(buf, '\\');
     if (slash)
     {