Ignore:
Timestamp:
Apr 2, 2003, 1:03:33 PM (22 years ago)
Author:
sandervl
Message:

PF: Corrected HFILE definition as it is in Wine and in Win2k

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/mmapdup.cpp

    r9946 r9971  
    1 /* $Id: mmapdup.cpp,v 1.1 2003-03-27 14:13:11 sandervl Exp $ */
     1/* $Id: mmapdup.cpp,v 1.2 2003-04-02 11:03:32 sandervl Exp $ */
    22
    33/*
     
    4848//
    4949//******************************************************************************
    50 Win32MemMapDup::Win32MemMapDup(Win32MemMap *parent, HFILE hFile, ULONG size,
     50Win32MemMapDup::Win32MemMapDup(Win32MemMap *parent, HANDLE hFile, ULONG size,
    5151                               ULONG fdwProtect, LPSTR lpszName) :
    5252          Win32MemMap(hFile, size, fdwProtect, lpszName)
     
    221221BOOL Win32MemMapDup::commitPage(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess, int nrpages)
    222222{
     223    if(mProtFlags & PAGE_WRITECOPY)
     224    {//this is a COW map, call commitGuardPage
     225        return commitGuardPage(ulFaultAddr, offset, fWriteAccess);
     226    }
    223227    return parent->commitPage(ulFaultAddr, offset, fWriteAccess, nrpages);
    224228}
     
    226230// Win32MemMapDup::commitGuardPage
    227231//
    228 // Handle a guard page exception
     232// Handle a guard page exception for a copy-on-write view
    229233//
    230234// Parameters:
Note: See TracChangeset for help on using the changeset viewer.