mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user