Ignore:
Timestamp:
Dec 10, 1999, 3:06:12 PM (26 years ago)
Author:
sandervl
Message:

Memory map fixes

File:
1 edited

Legend:

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

    r1914 r2053  
    1 /* $Id: hmmmap.cpp,v 1.8 1999-12-01 10:47:51 sandervl Exp $ */
     1/* $Id: hmmmap.cpp,v 1.9 1999-12-10 14:06:11 sandervl Exp $ */
    22
    33/*
     
    5353                                             DWORD size_high, /* [in] High-order 32 bits of object size */
    5454                                             DWORD size_low,  /* [in] Low-order 32 bits of object size */
    55                                              LPCSTR name)     /* [in] Name of file-mapping object */
     55                                             LPCSTR name,     /* [in] Name of file-mapping object */
     56                                             HFILE *hOldMap)  // if create an existing memmap, return handle of old one
    5657{
    5758 Win32MemMap *map;
     
    9192        //Is it allowed to open an existing view with different flags?
    9293        //(i.e. write access to readonly object)
     94        //Return handle of existing file mapping
     95        dprintf(("CreateFileMapping: Return handle of existing file mapping %s", name));
     96        map->AddRef();
     97        *hOldMap = map->getMapHandle();
     98        return ERROR_ALREADY_EXISTS;
    9399  }
    94100  else {
Note: See TracChangeset for help on using the changeset viewer.