From 4bc31393ace55faf79301fbfc966f5facba39e1a Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 25 Jul 2018 13:36:48 +0200 Subject: [PATCH] #3207 creaMaracasVisu Feature New Normal branch vtk7itk4wx3-mingw --- .../src/interface/wxWindows/include/wxMaracasApp02.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- 2.47.1