mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 13:45:58 +00:00
GetAncestor() doesn't set a last-error if the handle passed is the desktop window, it just returns NULL
svn path=/trunk/; revision=7885
This commit is contained in:
parent
f1253083e4
commit
71270ddbba
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: window.c,v 1.177 2004/01/18 08:29:31 navaraf Exp $
|
/* $Id: window.c,v 1.178 2004/01/27 08:29:28 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1796,7 +1796,6 @@ NtUserGetAncestor(HWND hWnd, UINT Type)
|
||||||
|
|
||||||
if (hWnd == IntGetDesktopWindow())
|
if (hWnd == IntGetDesktopWindow())
|
||||||
{
|
{
|
||||||
SetLastWin32Error(ERROR_ACCESS_DENIED);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue