Changeset 5065 for trunk/src


Ignore:
Timestamp:
Feb 5, 2001, 7:49:30 PM (25 years ago)
Author:
sandervl
Message:

GetDlgItem error fix

File:
1 edited

Legend:

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

    r4825 r5065  
    1 /* $Id: windlg.cpp,v 1.19 2000-12-17 15:04:13 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.20 2001-02-05 18:49:30 sandervl Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    258258//******************************************************************************
    259259//Can be used for any parent-child pair
     260//NOTE: Returns ERROR_CONTROL_ID_NOT_FOUND when child with id not found
     261//      Does not change last error if successful
    260262//******************************************************************************
    261263HWND WIN32API GetDlgItem(HWND hwnd, int id)
     
    275277    }
    276278    dprintf(("USER32: GetDlgItem %x %d NOT FOUND!\n", hwnd, id));
    277     SetLastError(ERROR_INVALID_PARAMETER);
     279    SetLastError(ERROR_CONTROL_ID_NOT_FOUND);  //verified in NT4, SP6
    278280    return 0;
    279281}
Note: See TracChangeset for help on using the changeset viewer.