Author: jimtabor
Date: Wed Jul 9 02:23:02 2008
New Revision: 34381
URL:
http://svn.reactos.org/svn/reactos?rev=34381&view=rev
Log:
Need shared pointer to user when comparing thread info.
Modified:
trunk/reactos/dll/win32/user32/windows/window.c
Modified: trunk/reactos/dll/win32/user32/windows/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/w…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/window.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/window.c [iso-8859-1] Wed Jul 9 02:23:02 2008
@@ -1300,18 +1300,20 @@
if (!pWnd) return Ret;
- ti = pWnd->ti;
-
+ ti = SharedPtrToUser(pWnd->ti);
+
if ( ti )
{
if ( ti == GetW32ThreadInfo() )
{ // We are current.
+ //FIXME("Current!\n");
if ( lpdwProcessId )
*lpdwProcessId = (DWORD)NtCurrentTeb()->Cid.UniqueProcess;
Ret = (DWORD)NtCurrentTeb()->Cid.UniqueThread;
}
else
{ // Ask kernel for info.
+ //FIXME("Kernel call!\n");
if ( lpdwProcessId )
*lpdwProcessId = NtUserQueryWindow(hWnd, QUERY_WINDOW_UNIQUE_PROCESS_ID);
Ret = NtUserQueryWindow(hWnd, QUERY_WINDOW_UNIQUE_THREAD_ID);