- Timestamp:
- Feb 13, 2004, 6:37:25 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/mmap.cpp
r10377 r10459 1 /* $Id: mmap.cpp,v 1.6 7 2004-01-11 11:57:53sandervl Exp $ */1 /* $Id: mmap.cpp,v 1.68 2004-02-13 17:37:25 sandervl Exp $ */ 2 2 3 3 /* … … 172 172 #endif 173 173 } 174 // Allocate the memory for the map right now 175 if(allocateMap() == FALSE) { 176 SetLastError(ERROR_NOT_ENOUGH_MEMORY); 177 goto fail; 178 } 174 179 175 180 dprintf(("CreateFileMappingA for file %x, prot %x size %d, name %s", hMemFile, mProtFlags, mSize, lpszMapName)); … … 196 201 } 197 202 if(pMapping && !image) { 203 dprintf(("Free map memory")); 198 204 if(lpszMapName) { 199 205 OSLibDosFreeMem(pMapping); … … 727 733 } 728 734 729 if(allocateMap() == FALSE) {730 SetLastError(ERROR_NOT_ENOUGH_MEMORY);731 goto fail;732 }733 734 735 mapview = new Win32MemMapView(this, offset, (size == 0) ? (mSize - offset) : size, fdwAccess); 735 736 if(mapview == NULL) { … … 785 786 delete view; 786 787 787 if(nrMappings == 0) {788 VirtualFree(pMapping, 0, MEM_RELEASE);789 pMapping = NULL;790 }791 788 mapMutex.leave(); 792 789
Note:
See TracChangeset
for help on using the changeset viewer.