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

Fixed wrong access of global window handle critical section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wndhandle.cpp

    r8978 r9490  
    1 /* $Id: win32wndhandle.cpp,v 1.16 2002-08-09 11:19:56 sandervl Exp $ */
     1/* $Id: win32wndhandle.cpp,v 1.17 2002-12-12 12:33:22 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    3535#pragma data_seg()
    3636
    37 static char *pszWndHandleSemName = NULL;
     37static char *pszWndHandleSemName = WINHANDLE_CRITSECTION_NAME;
    3838
    3939//******************************************************************************
     
    4848{
    4949    if(globalwhandlecritsect.hmtxLock == 0) {
    50          DosInitializeCriticalSection(&globalwhandlecritsect, (pszWndHandleSemName) ? pszWndHandleSemName : WINHANDLE_CRITSECTION_NAME);
     50         DosInitializeCriticalSection(&globalwhandlecritsect, pszWndHandleSemName);
    5151    }
    5252    else {
    5353         dprintf(("InitializeWindowHandles -> access shared critical section"));
    54          DosAccessCriticalSection(&globalwhandlecritsect, WINHANDLE_CRITSECTION_NAME);
     54         DosAccessCriticalSection(&globalwhandlecritsect, pszWndHandleSemName);
    5555    }
    5656}
Note: See TracChangeset for help on using the changeset viewer.