Changeset 8656 for trunk/src


Ignore:
Timestamp:
Jun 13, 2002, 4:02:50 PM (23 years ago)
Author:
sandervl
Message:

SetCustomWndHandleSemName added to override shared semaphore name used to synchronize global window handle array access (to avoid name clash with Odin)

File:
1 edited

Legend:

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

    r8626 r8656  
    1 /* $Id: win32wndhandle.cpp,v 1.13 2002-06-09 19:54:28 sandervl Exp $ */
     1/* $Id: win32wndhandle.cpp,v 1.14 2002-06-13 14:02:50 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    1919#include <vmutex.h>
    2020#include "win32wndhandle.h"
     21#include <custombuild.h>
    2122
    2223#define DBG_LOCALLOG    DBG_win32wndhandle
     
    3233#pragma data_seg()
    3334
     35static char *pszWndHandleSemName = NULL;
     36
     37//******************************************************************************
     38//******************************************************************************
     39void WIN32API SetCustomWndHandleSemName(LPSTR pszSemName)
     40{
     41    pszWndHandleSemName = pszSemName;
     42}
    3443//******************************************************************************
    3544//******************************************************************************
     
    3746{
    3847    if(globalwhandlecritsect.hmtxLock == 0) {
    39          DosInitializeCriticalSection(&globalwhandlecritsect, WINHANDLE_CRITSECTION_NAME);
     48         DosInitializeCriticalSection(&globalwhandlecritsect, (pszWndHandleSemName) ? pszWndHandleSemName : WINHANDLE_CRITSECTION_NAME);
    4049    }
    4150    else {
Note: See TracChangeset for help on using the changeset viewer.