Ignore:
Timestamp:
Nov 25, 1999, 8:22:04 PM (26 years ago)
Author:
sandervl
Message:

desktop + misc fixes

File:
1 edited

Legend:

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

    r1622 r1839  
    1 /* $Id: windlg.cpp,v 1.11 1999-11-05 17:50:30 achimha Exp $ */
     1/* $Id: windlg.cpp,v 1.12 1999-11-25 19:22:04 sandervl Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    130130        if(!dialog || !dialog->IsDialog()) {
    131131            dprintf(("DialogBoxIndirectParamA, dialog %x not found", hwnd));
     132            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    132133            return 0;
    133134        }
     
    151152        if(!dialog || !dialog->IsDialog()) {
    152153            dprintf(("DialogBoxIndirectParamW, dialog %x not found", hwnd));
     154            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    153155            return 0;
    154156        }
     
    171173        if(!dialog || !dialog->IsDialog()) {
    172174            dprintf(("DialogBoxParamA, dialog %x not found", hwnd));
     175            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    173176            return 0;
    174177        }
     
    191194        if(!dialog || !dialog->IsDialog()) {
    192195            dprintf(("DialogBoxParamW, dialog %x not found", hwnd));
     196            SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    193197            return 0;
    194198        }
     
    255259    }
    256260    dprintf(("USER32: GetDlgItem %x %d NOT FOUND!\n", hwnd, id));
     261    SetLastError(ERROR_INVALID_PARAMETER);
    257262    return 0;
    258263}
Note: See TracChangeset for help on using the changeset viewer.