Changeset 684 for trunk/src/kernel32/virtual.cpp
- Timestamp:
- Aug 25, 1999, 1:40:18 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/virtual.cpp
r678 r684 1 /* $Id: virtual.cpp,v 1. 4 1999-08-25 10:28:41sandervl Exp $ */1 /* $Id: virtual.cpp,v 1.5 1999-08-25 11:40:18 sandervl Exp $ */ 2 2 3 3 /* … … 20 20 #include <heapstring.h> 21 21 #include <handlemanager.h> 22 #include "mmap.h" 22 23 23 24 /*********************************************************************** … … 144 145 ) 145 146 { 146 dprintf(("FlushViewOfFile: NOT IMPLEMENTED")); 147 return TRUE; 147 Win32MemMap *map; 148 149 if (!base) 150 { 151 SetLastError( ERROR_INVALID_PARAMETER ); 152 return FALSE; 153 } 154 map = Win32MemMap::findMap((ULONG)base); 155 if(map == NULL) { 156 SetLastError( ERROR_FILE_NOT_FOUND ); 157 return FALSE; 158 } 159 return map->flushView((LPVOID)base, cbFlush); 148 160 } 149 161 … … 163 175 ) 164 176 { 177 Win32MemMap *map; 178 165 179 if (!addr) 166 180 { … … 168 182 return FALSE; 169 183 } 170 return TRUE; 184 map = Win32MemMap::findMap((ULONG)addr); 185 if(map == NULL) { 186 SetLastError( ERROR_FILE_NOT_FOUND ); 187 return FALSE; 188 } 189 return map->unmapViewOfFile(); 171 190 } 172 191
Note:
See TracChangeset
for help on using the changeset viewer.