X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkUtilities.cxx;h=672dac69d4163cd303253da91b8fbef0c0164791;hb=4d6822024afbbe783cdd620e248184b37d84c540;hp=85323d4b1451f65a7e6de58cef1c75f3af6459ee;hpb=4b4aece4d79aa2b7f8fef033184379ba2bcb4deb;p=bbtk.git diff --git a/kernel/src/bbtkUtilities.cxx b/kernel/src/bbtkUtilities.cxx index 85323d4..672dac6 100644 --- a/kernel/src/bbtkUtilities.cxx +++ b/kernel/src/bbtkUtilities.cxx @@ -672,10 +672,10 @@ void wtoc(const WCHAR* Source,CHAR* Dest) //2018-07-06 mingw64 //2021-12-12 -// wchar_t pname2[512]; -// long result = GetModuleFileName(NULL, pname2, pathsize); -// crea::System::wtoc(pname2,pname); - long result = GetModuleFileName(NULL, pname, pathsize); + wchar_t pname2[512]; + long result = GetModuleFileName(NULL, pname2, pathsize); + crea::System::wtoc(pname2,pname); +// long result = GetModuleFileName(NULL, pname, pathsize); if (result > 0) { /* fix up the dir slashes... */