Changeset 9588 for trunk/src


Ignore:
Timestamp:
Jan 2, 2003, 4:21:45 PM (23 years ago)
Author:
sandervl
Message:

Fixed behaviour of SetFocus(NULL)

File:
1 edited

Legend:

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

    r8978 r9588  
    1 /* $Id: window.cpp,v 1.128 2002-08-09 11:19:56 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.129 2003-01-02 15:21:45 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    783783    if(!window) {
    784784        dprintf(("SetFocus, window %x not found", hwnd));
    785         SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    786         return 0;
     785        //Note: last error not set (NT4, SP6), returns current focus window
     786        //SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     787        return GetFocus();
    787788    }
    788789
Note: See TracChangeset for help on using the changeset viewer.