Changeset 8456 for trunk/src/kernel32/mmap.cpp
- Timestamp:
- May 20, 2002, 3:47:59 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/mmap.cpp
r8203 r8456 1 /* $Id: mmap.cpp,v 1.5 5 2002-04-07 15:44:11sandervl Exp $ */1 /* $Id: mmap.cpp,v 1.56 2002-05-20 13:47:59 sandervl Exp $ */ 2 2 3 3 /* … … 105 105 //****************************************************************************** 106 106 //****************************************************************************** 107 BOOL Win32MemMap::Init( )107 BOOL Win32MemMap::Init(DWORD aMSize) 108 108 { 109 109 mapMutex.enter(); … … 134 134 goto fail; 135 135 } 136 if (mSize < aMSize) 137 { 138 dprintf(("Win32MemMap::init: file size %d, memory map size %d", mSize, aMSize)); 139 //Froloff: Need to check if exist the possibility of file to memory 140 // mapping not from the beginning of file 141 mSize = SetFilePointer(hMemFile, aMSize, NULL, FILE_BEGIN); 142 // Commit filesize changes onto disk 143 SetEndOfFile(hMemFile); 144 } 145 #if 0 136 146 //SvL: Temporary limitation of size (Warp Server Advanced doesn't allow 137 147 // one to reserve more than 450 MB (unless you override the virtual … … 140 150 mSize = 64*1024*1024; 141 151 } 152 #endif 142 153 } 143 154 … … 611 622 //Named file mappings from other processes are always shared; 612 623 //map into our address space 613 if(map->getMemName() != NULL && map->getProcessId() != mProcessId) 624 if(map->getMemName() != NULL && map->getProcessId() != mProcessId) 614 625 { 615 626 //shared memory map, so map it into our address space … … 756 767 } 757 768 while(view); 758 769 759 770 //failure if we get here 760 771 view = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.