]> Creatis software - creaContours.git/blobdiff - lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx
#3206 creaContours Feature New Normal branch vtk7itk4wx3-mingw
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / ParserOsirix / OsirixParser.cxx
index 6ad1ff6ab1e6f69b0412d1bf85b97ff2fd5f77b5..a503b4e1cb2c9bf085228d76a16b4ff97fbbe84e 100644 (file)
@@ -97,7 +97,7 @@ OsirixParser::OsirixParser(std::string xsdfile, double* spacing, int* extent)
        char currentPath[_MAX_PATH];    
        
     wchar_t currentPath2[512];
-    long result = GetModuleFileName(NULL, currentPath2, pathsize);
+    long result = GetModuleFileName(NULL, currentPath2, _MAX_PATH);
 //     GetModuleFileName(NULL, currentPath, _MAX_PATH);
        int ret = wcstombs ( currentPath, currentPath2, sizeof(pname) );