Ignore:
Timestamp:
Aug 25, 1999, 1:40:18 PM (26 years ago)
Author:
sandervl
Message:

Memory mapping changes

File:
1 edited

Legend:

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

    r678 r684  
    1 /* $Id: mmap.cpp,v 1.9 1999-08-25 10:28:40 sandervl Exp $ */
     1/* $Id: mmap.cpp,v 1.10 1999-08-25 11:40:18 sandervl Exp $ */
    22
    33/*
     
    254254        goto parmfail;
    255255
     256  if(cbFlush == 0)
     257        cbFlush = mSize;
     258
    256259  if(lpvBase < pMapping || (ULONG)lpvBase+cbFlush > (ULONG)pMapping+mSize)
    257260        goto parmfail;
     
    259262  if(mProtFlags & PAGE_READONLY)
    260263        goto parmfail;
     264
     265  if(hMemFile == -1)
     266        goto success; //TODO: Return an error here?
    261267
    262268  nrpages = cbFlush/PAGE_SIZE;
     
    293299        }
    294300  }
     301success:
    295302//  mapMutex.leave();
    296303  return TRUE;
Note: See TracChangeset for help on using the changeset viewer.