Commit 71e0e1ca authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 520054f6
......@@ -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) );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment