From ca40c0ffd4467fefcaaaadc819f023af65d8aeef Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 28 Jul 2003 02:05:46 +0000 Subject: [PATCH] Switch Thread and Process Id around in W32kGetWindowThreadProcessId svn path=/trunk/; revision=5297 --- reactos/subsys/win32k/ntuser/window.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/window.c b/reactos/subsys/win32k/ntuser/window.c index e62a16f3eb0..8d385b80c1f 100644 --- a/reactos/subsys/win32k/ntuser/window.c +++ b/reactos/subsys/win32k/ntuser/window.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * 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 * PROJECT: ReactOS kernel @@ -2005,8 +2005,9 @@ NtUserSetCapture(HWND Wnd) DWORD FASTCALL W32kGetWindowThreadProcessId(PWINDOW_OBJECT Wnd, PDWORD pid) { - if (pid) *pid = (DWORD) Wnd->OwnerThread->Cid.UniqueThread; - return (DWORD) Wnd->OwnerThread->ThreadsProcess->UniqueProcessId; + if (pid) *pid = (DWORD) Wnd->OwnerThread->ThreadsProcess->UniqueProcessId; + return (DWORD) Wnd->OwnerThread->Cid.UniqueThread; + }