]> 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 38cb2b04f5598828d8c465c6db7fa660e368486e..3847f2bd2f55b44679fed78cfdfff5c5e16006a1 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;