Fix GetAppCompatFlags to use Teb->ClientInfo instead of Teb->Win32ThreadInfo, which should be a kernel pointer.

svn path=/trunk/; revision=36788
This commit is contained in:
Timo Kreuzer
2008-10-17 11:18:57 +00:00
parent 187ed1777f
commit 2e9e3c99e6
+4 -10
View File
@@ -109,12 +109,9 @@ DWORD
STDCALL
GetAppCompatFlags(HTASK hTask)
{
PW32THREADINFO ti = GetW32ThreadInfo();
PCLIENTINFO pci = GetWin32ClientInfo();
/* If there is no threadinfo (?!), then return 0 */
if (!ti) return 0;
return ti->AppCompatFlags;
return pci->dwCompatFlags;
}
/*
@@ -124,12 +121,9 @@ DWORD
STDCALL
GetAppCompatFlags2(HTASK hTask)
{
PW32THREADINFO ti = GetW32ThreadInfo();
PCLIENTINFO pci = GetWin32ClientInfo();
/* If there is no threadinfo (?!), then return 0 */
if (!ti) return 0;
return ti->AppCompatFlags2;
return pci->dwCompatFlags2;
}
/*