]> Creatis software - crea.git/commitdiff
#3204 crea Feature New Normal branch mingw64
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 25 Jul 2018 11:48:36 +0000 (13:48 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 25 Jul 2018 11:48:36 +0000 (13:48 +0200)
src/creaSystem.cxx

index 38cb2b0..3847f2b 100644 (file)
@@ -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;