X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Flib%2Fkernel32%2Ffile%2Flfile.c;h=271ea60e52cf395b1fb296d32d234e59095f895d;hp=08915c995478ab1e033b62a551ad8dd18e3b22b3;hb=2e3612cc58c72eec43ab9f76dc6ce4b2c47607cb;hpb=f2064b3f8b3b6799c22e809c2be3022c34eefea3 diff --git a/reactos/lib/kernel32/file/lfile.c b/reactos/lib/kernel32/file/lfile.c index 08915c99547..271ea60e52c 100644 --- a/reactos/lib/kernel32/file/lfile.c +++ b/reactos/lib/kernel32/file/lfile.c @@ -1,4 +1,4 @@ -/* $Id: lfile.c,v 1.6 2000/06/03 14:47:32 ea Exp $ +/* $Id: lfile.c,v 1.7 2002/11/07 02:52:37 robd Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -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;