Changeset 19134


Ignore:
Timestamp:
Jun 6, 2002, 5:10:06 PM (23 years ago)
Author:
sandervl
Message:

MP: OSLibDosCreateFile: Fix a SYS0005 (Access Denied) when opening an existing file

File:
1 edited

Legend:

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

    r18954 r19134  
    1 /* $Id: oslibdos.cpp,v 1.102 2002-05-10 14:55:12 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.103 2002-06-06 15:10:06 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    11081108        openMode |= OPEN_ACCESS_READONLY;
    11091109   else
     1110   //mgp: There seems to be a problem where OPEN_ACCESS_WRITEONLY gives an
     1111   //     Access Error (0x05) if the file is opened with
     1112   //     OPEN_ACTION_OPEN_IF_EXISTS.  So, in that case, change it to
     1113   //     OPEN_ACCESS_READWRITE
    11101114   if(fuAccess & GENERIC_WRITE_W)
    1111         openMode |= OPEN_ACCESS_WRITEONLY;
     1115      if  (openFlag & OPEN_ACTION_OPEN_IF_EXISTS)
     1116        openMode |= OPEN_ACCESS_READWRITE;
     1117      else
     1118         openMode |= OPEN_ACCESS_WRITEONLY;
    11121119
    11131120#if 0
Note: See TracChangeset for help on using the changeset viewer.