]> 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:49:41 +0000 (13:49 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 25 Jul 2018 11:49:41 +0000 (13:49 +0200)
lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx

index ecd2b970cd9fb07227fd36675a537b3a02bb24d4..ce5f0463d1300f70c288183d5453852e890c9904 100644 (file)
@@ -95,7 +95,7 @@ wxString getExecutablePath()
 #if defined(WIN32)
 
     wchar_t buf2[512];
-    long result = GetModuleFileName(NULL, buf2, pathsize);
+    long result = GetModuleFileName(NULL, buf2, 511);
        int ret = wcstombs ( buf, buf2, sizeof(pname) );        
 //    GetModuleFileName(NULL, buf, 511);