user32: Clear %edi register when calling window procedure.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46352
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-12-28 18:19:48 +01:00
parent c26b6afad3
commit 0d83218a2d
1 changed files with 2 additions and 0 deletions

View File

@ -191,6 +191,8 @@ __ASM_GLOBAL_FUNC( WINPROC_wrapper,
__ASM_CFI(".cfi_rel_offset %esi,-8\n\t")
"pushl %ebx\n\t"
__ASM_CFI(".cfi_rel_offset %ebx,-12\n\t")
/* TreePad X Enterprise assumes that edi is < 0x80000000 in WM_TIMER messages */
"xorl %edi,%edi\n\t"
"subl $12,%esp\n\t"
"pushl 24(%ebp)\n\t"
"pushl 20(%ebp)\n\t"