From: Juan Prieto Date: Wed, 3 Dec 2008 14:53:42 +0000 (+0000) Subject: bug fix windows X-Git-Tag: v0.2.0~20 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=57d417898d69cac7894370ea9bccc0888290a0b8;p=crea.git bug fix windows --- diff --git a/src/creaFilesFromDirectory.cxx b/src/creaFilesFromDirectory.cxx index 2d9f215..06c5e6f 100644 --- a/src/creaFilesFromDirectory.cxx +++ b/src/creaFilesFromDirectory.cxx @@ -3,8 +3,8 @@ Program: crea Module: $RCSfile: creaFilesFromDirectory.cxx,v $ Language: C++ - Date: $Date: 2008/11/25 13:15:57 $ - Version: $Revision: 1.1 $ + Date: $Date: 2008/12/03 14:53:42 $ + Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -34,6 +34,7 @@ #include //stat function #include "creaFilesFromDirectory.h" + #include "creaMessageManager.h" namespace crea { @@ -47,7 +48,7 @@ std::string DirList::NormalizePath(std::string const &pathname) #ifdef _WIN32 - const char FILESEPARATOR = '\\; + const char FILESEPARATOR = '\\'; #else const char FILESEPARATOR = '/'; #endif @@ -109,7 +110,7 @@ int DirList::Explore(std::string const &dirpath, bool recursive) MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language (LPTSTR) &lpMsgBuf,0,NULL); - gdcmErrorMacro("FindNextFile error. Error is " << (char *)lpMsgBuf + creaError("FindNextFile error. Error is " << (char *)lpMsgBuf <<" for the directory : "<