]> Creatis software - crea.git/commitdiff
bug fix windows
authorJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Wed, 3 Dec 2008 14:53:42 +0000 (14:53 +0000)
committerJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Wed, 3 Dec 2008 14:53:42 +0000 (14:53 +0000)
src/creaFilesFromDirectory.cxx

index 2d9f21550d28cf2a6bedae70ebf08fe287e62f42..06c5e6f024895bb148c9b694845cae3eee698cb8 100644 (file)
@@ -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 <sys/stat.h>  //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 : "<<dirName);
       return -1;
    }