kernel32: Initialise the top 16-bit stack frame to zero.

This commit is contained in:
Rob Shearman 2008-01-17 19:07:06 +00:00 committed by Alexandre Julliard
parent 520054f60c
commit 71e0e1ca63
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ static void thread_attach(void)
kernel_get_thread_data()->stack_sel = GlobalHandleToSel16( hstack );
NtCurrentTeb()->WOW32Reserved = (void *)MAKESEGPTR( kernel_get_thread_data()->stack_sel,
0x10000 - sizeof(STACK16FRAME) );
memset( (char *)GlobalLock16(hstack) + 0x10000 - sizeof(STACK16FRAME), 0, sizeof(STACK16FRAME) );
}