Ignore:
Timestamp:
Sep 26, 1999, 4:44:58 PM (26 years ago)
Author:
sandervl
Message:

Dialog + error handling fixes

File:
1 edited

Legend:

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

    r949 r1063  
    1 /* $Id: windlg.cpp,v 1.1 1999-09-15 23:19:02 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.2 1999-09-26 14:44:58 sandervl Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    212212    if(!dialog || !dialog->IsDialog()) {
    213213        dprintf(("GetNextDlgTabItem, window %x not found", hwndDlg));
     214        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    214215        return 0;
    215216    }
     
    227228    if(!dialog || !dialog->IsDialog()) {
    228229        dprintf(("GetDlgItem, window %x not found", hwnd));
     230        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    229231        return 0;
    230232    }
     
    245247    if(!dlgcontrol) {
    246248        dprintf(("GetDlgCtrlID, control %x not found", hwnd));
     249        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    247250        return 0;
    248251    }
     
    259262    if(!dialog || !dialog->IsDialog()) {
    260263        dprintf(("GetDlgItem, window %x not found", hwnd));
     264        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    261265        return 0;
    262266    }
Note: See TracChangeset for help on using the changeset viewer.