Ignore:
Timestamp:
Aug 12, 2000, 9:32:19 AM (25 years ago)
Author:
sandervl
Message:

CreateFile fix (don't add write access when creating files)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibdos.cpp

    r3993 r3999  
    1 /* $Id: oslibdos.cpp,v 1.37 2000-08-11 10:56:17 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.38 2000-08-12 07:32:19 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    782782        openMode |= OPEN_ACCESS_WRITEONLY;
    783783
     784#if 0
     785   //SvL: Not true; verified in NT! (also messed up access of files on
     786   //     readonly volumes)
     787   //     CreateFile with OPEN_ALWAYS & GENERIC_READ on non-existing file
     788   //     -> creates 0 size file, WriteFile is not allowed
     789   //     Same in OS/2.
    784790   /* if creating a file, access cannot be readonly! */
    785791   if (openFlag & OPEN_ACTION_CREATE_IF_NEW &&
     
    788794        openMode |= OPEN_ACCESS_READWRITE;
    789795   }
     796#endif
    790797
    791798   int retry = 0;
Note: See TracChangeset for help on using the changeset viewer.