From: Eduardo DAVILA Date: Wed, 25 Jul 2018 11:50:03 +0000 (+0200) Subject: #3206 creaContours Feature New Normal branch vtk7itk4wx3-mingw X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c76fc07e0c9a1153b86ae3f7163402716ec17ccb;p=creaContours.git #3206 creaContours Feature New Normal branch vtk7itk4wx3-mingw --- diff --git a/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx b/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx index 6ad1ff6..a503b4e 100644 --- a/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx +++ b/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx @@ -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) );