Changeset 9489


Ignore:
Timestamp:
Dec 12, 2002, 1:33:08 PM (22 years ago)
Author:
sandervl
Message:

Fixed wrong access of global memory map critical section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/kernel32/mmap.cpp

    r8913 r9489  
    1 /* $Id: mmap.cpp,v 1.59 2002-07-23 13:51:47 sandervl Exp $ */
     1/* $Id: mmap.cpp,v 1.60 2002-12-12 12:33:08 sandervl Exp $ */
    22
    33/*
     
    4848
    4949
    50 static char *pszMMapSemName = NULL;
     50static char *pszMMapSemName = MEMMAP_CRITSECTION_NAME;
    5151
    5252//******************************************************************************
     
    6262    if(globalmapcritsect.hmtxLock == 0) {
    6363         dprintf(("InitializeMemMaps -> create shared critical section"));
    64          DosInitializeCriticalSection(&globalmapcritsect, (pszMMapSemName) ? pszMMapSemName : MEMMAP_CRITSECTION_NAME);
     64         DosInitializeCriticalSection(&globalmapcritsect, pszMMapSemName);
    6565    }
    6666    else {
    6767         dprintf(("InitializeMemMaps -> access shared critical section"));
    68          DosAccessCriticalSection(&globalmapcritsect, MEMMAP_CRITSECTION_NAME);
     68         DosAccessCriticalSection(&globalmapcritsect, pszMMapSemName);
    6969    }
    7070}
Note: See TracChangeset for help on using the changeset viewer.