mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 19:25:36 +00:00
[WIN32K]
- Avoid invalid memory write. See issue #5969 for more details. svn path=/trunk/; revision=53583
This commit is contained in:
@@ -497,11 +497,14 @@ GetW32ThreadInfo(VOID)
|
||||
pti->pClientInfo = pci;
|
||||
_SEH2_TRY
|
||||
{
|
||||
ProbeForWrite( Teb,
|
||||
sizeof(TEB),
|
||||
sizeof(ULONG));
|
||||
if(Teb)
|
||||
{
|
||||
ProbeForWrite( Teb,
|
||||
sizeof(TEB),
|
||||
sizeof(ULONG));
|
||||
|
||||
Teb->Win32ThreadInfo = (PW32THREAD) pti;
|
||||
Teb->Win32ThreadInfo = (PW32THREAD) pti;
|
||||
}
|
||||
|
||||
pci->ppi = ppi;
|
||||
pci->fsHooks = pti->fsHooks;
|
||||
|
||||
Reference in New Issue
Block a user