From f72cf9587d664b728f5ebf7d9bcc02bd34376930 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 25 Jul 2018 13:34:54 +0200 Subject: [PATCH] #3206 creaContours Feature New Normal branch vtk7itk4wx3-mingw --- .../ParserOsirix/OsirixParser.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx b/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx index 03d3426..6ad1ff6 100644 --- a/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx +++ b/lib/kernel_ManagerContour_NDimensions/ParserOsirix/OsirixParser.cxx @@ -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("\\")); -- 2.45.1