From: Eduardo DAVILA Date: Wed, 25 Jul 2018 11:49:41 +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=004b1f122b1901713d37a497ca6ed1cbf18a2ed7;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 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);