Ignore:
Timestamp:
Jun 27, 1999, 6:49:52 PM (26 years ago)
Author:
sandervl
Message:

Fix for winhlp32 buttons

File:
1 edited

Legend:

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

    r225 r227  
    1 /* $Id: setwindow.cpp,v 1.2 1999-06-27 16:23:23 sandervl Exp $ */
     1/* $Id: setwindow.cpp,v 1.3 1999-06-27 16:49:52 sandervl Exp $ */
    22
    33/*
     
    7474 LONG rc;
    7575
     76    dprintf(("USER32:  GetWindowLong %X %d\n", hwnd, nIndex));
     77
    7678    if(nIndex == GWL_WNDPROC || nIndex == DWL_DLGPROC) {
    77 #ifdef DEBUG
    78         WriteLog("USER32:  GetWindowLong %X %d\n", hwnd, nIndex);
    79 #endif
    8079        Win32WindowProc *window = Win32WindowProc::FindProc(hwnd);
    8180        if(window && !(nIndex == DWL_DLGPROC && window->IsWindow() == TRUE)) {
     
    8483    }
    8584    rc = O32_GetWindowLong(hwnd, nIndex);
     85    //SvL: We must return longs here, not shorts!
     86    //     (fixed Winhlp32 buttons)
     87    if(rc == 0xffff)
     88        rc = 0xffffffff;
    8689    return(rc);
    8790}
Note: See TracChangeset for help on using the changeset viewer.