From 004b1f122b1901713d37a497ca6ed1cbf18a2ed7 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 25 Jul 2018 13:49:41 +0200 Subject: [PATCH] #3207 creaMaracasVisu Feature New Normal branch vtk7itk4wx3-mingw --- .../src/interface/wxWindows/include/wxMaracasApp02.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx b/lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx index ecd2b97..ce5f046 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/include/wxMaracasApp02.cxx @@ -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); -- 2.45.1