]> Creatis software - creaContours.git/commitdiff
#3206 creaContours Feature New Normal branch vtk7itk4wx3-mingw
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 25 Jul 2018 11:34:54 +0000 (13:34 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 25 Jul 2018 11:34:54 +0000 (13:34 +0200)
lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx

index 03d34261aed9dd5038963afc0b3d0121f7043c92..6ad1ff6ab1e6f69b0412d1bf85b97ff2fd5f77b5 100644 (file)
@@ -95,7 +95,12 @@ OsirixParser::OsirixParser(std::string xsdfile, double* spacing, int* extent)
 #ifdef WIN32
 
        char currentPath[_MAX_PATH];    
-       GetModuleFileName(NULL, currentPath, _MAX_PATH);
+       
+    wchar_t currentPath2[512];
+    long result = GetModuleFileName(NULL, currentPath2, pathsize);
+//     GetModuleFileName(NULL, currentPath, _MAX_PATH);
+       int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) );        
+       
        TEMPIMPORTOSIRIXFILE = currentPath;
 
        TEMPIMPORTOSIRIXFILE = TEMPIMPORTOSIRIXFILE.substr(0,TEMPIMPORTOSIRIXFILE.find_last_of("\\"));