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/virtual.cpp

    r678 r684  
    1 /* $Id: virtual.cpp,v 1.4 1999-08-25 10:28:41 sandervl Exp $ */
     1/* $Id: virtual.cpp,v 1.5 1999-08-25 11:40:18 sandervl Exp $ */
    22
    33/*
     
    2020#include <heapstring.h>
    2121#include <handlemanager.h>
     22#include "mmap.h"
    2223
    2324/***********************************************************************
     
    144145)
    145146{
    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);
    148160}
    149161
     
    163175)
    164176{
     177 Win32MemMap *map;
     178
    165179    if (!addr)
    166180    {
     
    168182        return FALSE;
    169183    }
    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();
    171190}
    172191
Note: See TracChangeset for help on using the changeset viewer.