- Timestamp:
- Dec 1, 1999, 11:47:51 AM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmmmap.cpp
r1432 r1914 1 /* $Id: hmmmap.cpp,v 1. 7 1999-10-24 22:51:21 sandervl Exp $ */1 /* $Id: hmmmap.cpp,v 1.8 1999-12-01 10:47:51 sandervl Exp $ */ 2 2 3 3 /* … … 60 60 protect & ~(PAGE_READONLY|PAGE_READWRITE|PAGE_WRITECOPY|SEC_COMMIT|SEC_IMAGE|SEC_RESERVE|SEC_NOCACHE) || 61 61 (protect & (PAGE_READONLY|PAGE_READWRITE|PAGE_WRITECOPY)) == 0 || 62 (hFile == -1 && (protect & SEC_COMMIT)) ||62 // (hFile == -1 && (protect & SEC_COMMIT)) || 63 63 ((protect & SEC_COMMIT) && (protect & SEC_RESERVE))) 64 64 { -
trunk/src/kernel32/oslibdos.cpp
r1844 r1914 1 /* $Id: oslibdos.cpp,v 1.1 0 1999-11-26 00:05:18sandervl Exp $ */1 /* $Id: oslibdos.cpp,v 1.11 1999-12-01 10:47:51 sandervl Exp $ */ 2 2 3 3 /* … … 14 14 #define INCL_DOSMEMMGR 15 15 #define INCL_DOSPROCESS 16 #define INCL_DOSERRORS 16 17 #include <os2wrap.h> //Odin32 OS/2 api wrappers 17 18 #include <stdlib.h> … … 200 201 os2flags |= OPEN_SHARE_DENYWRITE; 201 202 203 tryopen: 202 204 rc = DosOpen(lpszFileName, /* File path name */ 203 205 &hFile, /* File handle */ … … 211 213 212 214 if(rc) { 215 if(rc == ERROR_TOO_MANY_OPEN_FILES) { 216 ULONG CurMaxFH; 217 LONG ReqCount = 32; 218 219 rc = DosSetRelMaxFH(&ReqCount, &CurMaxFH); 220 if(rc) { 221 dprintf(("DosSetRelMaxFH returned %d", rc)); 222 return 0; 223 } 224 dprintf(("DosOpen failed -> increased nr open files to %d", CurMaxFH)); 225 goto tryopen; 226 } 213 227 return 0; 214 228 } … … 529 543 //****************************************************************************** 530 544 //****************************************************************************** 545 void OSLibDosDisableHardError(BOOL fTurnOff) 546 { 547 DosError((fTurnOff) ? FERR_DISABLEHARDERR : FERR_ENABLEHARDERR); 548 } 549 //****************************************************************************** 550 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.