Author: tkreuzer
Date: Fri Oct 17 06:18:57 2008
New Revision: 36788
URL:
http://svn.reactos.org/svn/reactos?rev=36788&view=rev
Log:
Fix GetAppCompatFlags to use Teb->ClientInfo instead of Teb->Win32ThreadInfo, which
should be a kernel pointer.
Modified:
trunk/reactos/dll/win32/user32/misc/stubs.c
Modified: trunk/reactos/dll/win32/user32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/stub…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/misc/stubs.c [iso-8859-1] Fri Oct 17 06:18:57 2008
@@ -109,12 +109,9 @@
STDCALL
GetAppCompatFlags(HTASK hTask)
{
- PW32THREADINFO ti = GetW32ThreadInfo();
-
- /* If there is no threadinfo (?!), then return 0 */
- if (!ti) return 0;
-
- return ti->AppCompatFlags;
+ PCLIENTINFO pci = GetWin32ClientInfo();
+
+ return pci->dwCompatFlags;
}
/*
@@ -124,12 +121,9 @@
STDCALL
GetAppCompatFlags2(HTASK hTask)
{
- PW32THREADINFO ti = GetW32ThreadInfo();
-
- /* If there is no threadinfo (?!), then return 0 */
- if (!ti) return 0;
-
- return ti->AppCompatFlags2;
+ PCLIENTINFO pci = GetWin32ClientInfo();
+
+ return pci->dwCompatFlags2;
}
/*