explorer: merge changes from lean explorer branch (shell namespace iteration, icon...
[reactos.git] / reactos / subsys / system / explorer / shell / ntobjfs.cpp
index 557798d..e22d9ec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004 Martin Fuchs
+ * Copyright 2004, 2005 Martin Fuchs
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -262,12 +262,14 @@ void NtObjDirectory::read_directory(int scan_flags)
 
                                entry = NULL;
 
+#ifndef _NO_WIN_FS
                                if (*w32fd.cFileName>='A' &&*w32fd.cFileName<='Z' && w32fd.cFileName[1]==':')
                                        if (!_tcsncmp(buffer,TEXT("\\??\\"),4) ||               // NT4
                                                !_tcsncmp(buffer,TEXT("\\GLOBAL??"),9)) {       // XP
                                                w32fd.dwFileAttributes |= FILE_ATTRIBUTE_DIRECTORY;
                                                entry = new WinDirectory(this, w32fd.cFileName);
                                        }
+#endif
 
                                if (!entry)
                                        entry = new NtObjDirectory(this, buffer);