Rob Shearman : kernel32: Initialise the top 16-bit stack frame to zero.
Alexandre Julliard
julliard at winehq.org
Fri Jan 18 06:33:56 CST 2008
Module: wine
Branch: master
Commit: 71e0e1ca6396a85138378b29aefbf9b5f0dbb920
URL: http://source.winehq.org/git/wine.git/?a=commit;h=71e0e1ca6396a85138378b29aefbf9b5f0dbb920
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu Jan 17 19:07:06 2008 +0000
kernel32: Initialise the top 16-bit stack frame to zero.
---
dlls/kernel32/kernel_main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/kernel_main.c b/dlls/kernel32/kernel_main.c
index 504e6f0..86e4a39 100644
--- a/dlls/kernel32/kernel_main.c
+++ b/dlls/kernel32/kernel_main.c
@@ -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) );
}
More information about the wine-cvs
mailing list