Changeset 8626 for trunk/src


Ignore:
Timestamp:
Jun 9, 2002, 9:54:28 PM (23 years ago)
Author:
sandervl
Message:

skip handle 0x6800000

File:
1 edited

Legend:

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

    r8210 r8626  
    1 /* $Id: win32wndhandle.cpp,v 1.12 2002-04-07 21:37:35 sandervl Exp $ */
     1/* $Id: win32wndhandle.cpp,v 1.13 2002-06-09 19:54:28 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    2929ULONG                WindowHandleTable[MAX_WINDOW_HANDLES] = {0};
    3030CRITICAL_SECTION_OS2 globalwhandlecritsect = {0};
    31 ULONG  lastIndex = 0;
     31ULONG                lastIndex = 0;
    3232#pragma data_seg()
    3333
     
    6767        return FALSE;
    6868  }
    69   *hwnd  = lastIndex;
     69  *hwnd  = lastIndex+1; //we skip handle 0x68000000
    7070  *hwnd |= WNDHANDLE_MAGIC_HIGHWORD;
    7171  WindowHandleTable[lastIndex] = dwUserData;
     
    8080void HwFreeWindowHandle(HWND hwnd)
    8181{
     82  hwnd = hwnd - 1; //we skip handle 0x68000000
    8283  hwnd &= WNDHANDLE_MAGIC_MASK;
    8384  if(hwnd < MAX_WINDOW_HANDLES) {
     
    9091//******************************************************************************
    9192//******************************************************************************
    92 /* 2001-10-17 PH
    93  * Note: this function is repeated as "inline macro" in win32wbase.cpp.
    94  * Changes here must be reflected there, tool.
    95  */
    9693BOOL HwGetWindowHandleData(HWND hwnd, DWORD *pdwUserData)
    9794{
     95  hwnd = hwnd - 1; //we skip handle 0x68000000
    9896  if((hwnd & 0xFFFF0000) != WNDHANDLE_MAGIC_HIGHWORD) {
    9997        return FALSE; //unknown window (PM?)
Note: See TracChangeset for help on using the changeset viewer.