From f0d4e3c543a51f6c7b8f8599fc7889d74d65cc6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Wed, 30 Apr 2003 15:11:31 +0000 Subject: [PATCH] Zero-initialze TEB for new threads svn path=/trunk/; revision=4620 --- reactos/ntoskrnl/ps/create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ps/create.c b/reactos/ntoskrnl/ps/create.c index 998fd450c8a..810e22a1188 100644 --- a/reactos/ntoskrnl/ps/create.c +++ b/reactos/ntoskrnl/ps/create.c @@ -1,4 +1,4 @@ -/* $Id: create.c,v 1.57 2003/04/26 23:13:33 hyperion Exp $ +/* $Id: create.c,v 1.58 2003/04/30 15:11:31 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -447,6 +447,7 @@ PsCreateTeb(HANDLE ProcessHandle, DPRINT ("TebBase %p TebSize %lu\n", TebBase, TebSize); + RtlZeroMemory(&Teb, sizeof(TEB)); /* set all pointers to and from the TEB */ Teb.Tib.Self = TebBase; if (Thread->ThreadsProcess)