From: Eduardo DAVILA Date: Wed, 25 Jul 2018 11:48:36 +0000 (+0200) Subject: #3204 crea Feature New Normal branch mingw64 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=bcd31aa043be8f5d006bdc610c0ba3b1c9f92547;p=crea.git #3204 crea Feature New Normal branch mingw64 --- diff --git a/src/creaSystem.cxx b/src/creaSystem.cxx index 38cb2b0..3847f2b 100644 --- a/src/creaSystem.cxx +++ b/src/creaSystem.cxx @@ -220,7 +220,7 @@ std::string System::GetDllAppPath(std::string &nomdll){ //2018-07-06 mingw64 wchar_t currentPath2[512]; GetModuleFileName(hand, currentPath2, _MAX_PATH); - int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) ); + int ret = wcstombs ( currentPath, currentPath2, sizeof(currentPath) ); // GetModuleFileName(hand, currentPath, _MAX_PATH); path = currentPath; @@ -245,7 +245,7 @@ std::string System::GetDllAppPath(const char *nomdll){ //2018-07-06 mingw64 wchar_t currentPath2[512]; GetModuleFileName(hand, currentPath2, _MAX_PATH); - int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) ); + int ret = wcstombs ( currentPath, currentPath2, sizeof(currentPath) ); // GetModuleFileName(hand, currentPath, _MAX_PATH); path = currentPath;