update for HEAD-2002110701
[reactos.git] / lib / kernel32 / file / lfile.c
index 6bbec15..4dd4acd 100644 (file)
@@ -156,11 +156,11 @@ _lcreat (
 
        DWORD FileAttributes = 0;
        
-       if (  iAttribute == 1 )
+       if (  iAttribute == 0 )
                FileAttributes |= FILE_ATTRIBUTE_NORMAL;
-       else if (  iAttribute == 2 )
+       else if (  iAttribute == 1 )
                FileAttributes |= FILE_ATTRIBUTE_READONLY;
-       else if (  iAttribute == 3 )
+       else if (  iAttribute == 2 )
                FileAttributes |= FILE_ATTRIBUTE_HIDDEN;
        else if (  iAttribute == 4 )
                FileAttributes |= FILE_ATTRIBUTE_SYSTEM;