From: Eduardo DAVILA Date: Wed, 25 Jul 2018 11:36:48 +0000 (+0200) Subject: #3207 creaMaracasVisu Feature New Normal branch vtk7itk4wx3-mingw X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4bc31393ace55faf79301fbfc966f5facba39e1a;p=creaMaracasVisu.git #3207 creaMaracasVisu Feature New Normal branch vtk7itk4wx3-mingw --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx b/lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx index 50bea15..ecd2b97 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx @@ -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) {