Ignore:
Timestamp:
Jun 25, 2000, 9:13:28 AM (25 years ago)
Author:
sandervl
Message:

MN: creating file & readonly -> readwrite (or else DosOpen fails)

File:
1 edited

Legend:

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

    r3714 r3748  
    1 /* $Id: oslibdos.cpp,v 1.31 2000-06-16 00:04:30 phaller Exp $ */
     1/* $Id: oslibdos.cpp,v 1.32 2000-06-25 07:13:28 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    780780   if(fuAccess & GENERIC_WRITE_W)
    781781        openMode |= OPEN_ACCESS_WRITEONLY;
     782
     783   /* if creating a file, access cannot be readonly! */
     784   if (openFlag & OPEN_ACTION_CREATE_IF_NEW &&
     785       (!(openMode & OPEN_ACCESS_READWRITE) &&
     786        !(openMode & OPEN_ACCESS_WRITEONLY))) {
     787        openMode |= OPEN_ACCESS_READWRITE;
     788   }
    782789
    783790   int retry = 0;
Note: See TracChangeset for help on using the changeset viewer.