Changeset 712 for trunk/src/kernel32/virtual.cpp
- Timestamp:
- Aug 27, 1999, 6:51:01 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/virtual.cpp
r708 r712 1 /* $Id: virtual.cpp,v 1.1 0 1999-08-26 17:56:26sandervl Exp $ */1 /* $Id: virtual.cpp,v 1.11 1999-08-27 16:51:01 sandervl Exp $ */ 2 2 3 3 /* … … 149 149 { 150 150 Win32MemMap *map; 151 DWORD offset; 151 152 152 153 if (!base) … … 155 156 return FALSE; 156 157 } 157 map = Win32MemMap ::findMap((ULONG)base);158 map = Win32MemMapView::findMapByView((ULONG)base, &offset, MEMMAP_ACCESS_READ); 158 159 if(map == NULL) { 159 160 SetLastError( ERROR_FILE_NOT_FOUND ); 160 161 return FALSE; 161 162 } 162 return map->flushView( (LPVOID)base, cbFlush);163 return map->flushView(offset, cbFlush); 163 164 } 164 165 … … 179 180 { 180 181 Win32MemMap *map; 182 Win32MemMapView *view; 183 184 DWORD offset; 181 185 182 186 if (!addr) … … 185 189 return FALSE; 186 190 } 187 map = Win32MemMap ::findMap((ULONG)addr);191 map = Win32MemMapView::findMapByView((ULONG)addr, &offset, MEMMAP_ACCESS_READ, &view); 188 192 if(map == NULL) { 189 193 SetLastError( ERROR_FILE_NOT_FOUND ); 190 194 return FALSE; 191 195 } 192 return map->unmapViewOfFile( );196 return map->unmapViewOfFile(view); 193 197 } 194 198 … … 461 465 return 0; 462 466 } 463 cbRangeSize = cbLength; 467 468 cbRangeSize = cbLength & ~0xFFF; 469 if(cbLength & 0xFFF) { 470 cbRangeSize += PAGE_SIZE; 471 } 464 472 rc = OSLibDosQueryMem((LPVOID)lpvAddress, &cbRangeSize, &dAttr); 465 473 if(rc) {
Note:
See TracChangeset
for help on using the changeset viewer.