[NTVDM]: Fix a bug introduced in r67619.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 10 May 2015 14:26:49 +0000 (14:26 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 10 May 2015 14:26:49 +0000 (14:26 +0000)
svn path=/trunk/; revision=67622

reactos/subsystems/mvdm/ntvdm/dos/dem.c

index c30c47f..d53d575 100644 (file)
@@ -556,9 +556,9 @@ demFileFindFirst(OUT PVOID  lpFindFileData,
     do
     {
         /* Check the attributes and retry as long as we haven't found a matching file */
-        if (((FindData.dwFileAttributes & (FILE_ATTRIBUTE_HIDDEN |
-                                           FILE_ATTRIBUTE_SYSTEM |
-                                           FILE_ATTRIBUTE_DIRECTORY))
+        if (!((FindData.dwFileAttributes & (FILE_ATTRIBUTE_HIDDEN |
+                                            FILE_ATTRIBUTE_SYSTEM |
+                                            FILE_ATTRIBUTE_DIRECTORY))
              & ~AttribMask))
         {
             break;