GetWindowThreadProcessId impl./fixed

svn path=/trunk/; revision=5265
This commit is contained in:
Gunnar Dalsnes 2003-07-25 19:37:14 +00:00
parent a857d3b160
commit 457baf8e8c

View file

@ -1,4 +1,4 @@
/* $Id: window.c,v 1.45 2003/07/23 06:14:12 jimtabor Exp $ /* $Id: window.c,v 1.46 2003/07/25 19:37:14 gdalsnes Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS user32.dll * PROJECT: ReactOS user32.dll
@ -1151,8 +1151,7 @@ DWORD STDCALL
GetWindowThreadProcessId(HWND hWnd, GetWindowThreadProcessId(HWND hWnd,
LPDWORD lpdwProcessId) LPDWORD lpdwProcessId)
{ {
if(lpdwProcessId) *lpdwProcessId = NtUserQueryWindow(hWnd, 0); return NtUserGetWindowThreadProcessId(hWnd, lpdwProcessId);
return(NtUserQueryWindow(hWnd, 1));
} }