X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Fkernel_ManagerContour_NDimensions%2FParserOsirix%2FOsirixParser.cxx;h=a503b4e1cb2c9bf085228d76a16b4ff97fbbe84e;hb=refs%2Fheads%2Fvtk9itk4wx3-macos;hp=6ad1ff6ab1e6f69b0412d1bf85b97ff2fd5f77b5;hpb=f72cf9587d664b728f5ebf7d9bcc02bd34376930;p=creaContours.git 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) );