Switch Thread and Process Id around in W32kGetWindowThreadProcessId

svn path=/trunk/; revision=5297
This commit is contained in:
James Tabor 2003-07-28 02:05:46 +00:00
parent d3b4f0a838
commit ca40c0ffd4

View file

@ -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.70 2003/07/28 01:22:28 jimtabor Exp $ /* $Id: window.c,v 1.71 2003/07/28 02:05:46 jimtabor Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -2005,8 +2005,9 @@ NtUserSetCapture(HWND Wnd)
DWORD FASTCALL DWORD FASTCALL
W32kGetWindowThreadProcessId(PWINDOW_OBJECT Wnd, PDWORD pid) W32kGetWindowThreadProcessId(PWINDOW_OBJECT Wnd, PDWORD pid)
{ {
if (pid) *pid = (DWORD) Wnd->OwnerThread->Cid.UniqueThread; if (pid) *pid = (DWORD) Wnd->OwnerThread->ThreadsProcess->UniqueProcessId;
return (DWORD) Wnd->OwnerThread->ThreadsProcess->UniqueProcessId; return (DWORD) Wnd->OwnerThread->Cid.UniqueThread;
} }