Sebastian Lackner : user32: Set %ecx to address of rect in EnumDisplayMonitors callback.

Alexandre Julliard julliard at winehq.org
Thu Jun 16 03:45:41 CDT 2016


Module: wine
Branch: stable
Commit: f7c6a288ce8a73c2fdfb55d3a0174480e3d235e5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f7c6a288ce8a73c2fdfb55d3a0174480e3d235e5

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Thu Mar 31 05:51:41 2016 +0200

user32: Set %ecx to address of rect in EnumDisplayMonitors callback.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 11f6df13eb23260331d9ca8412b9323dbe942885)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/user32/misc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c
index 6b1b5ed..7c53ab2 100644
--- a/dlls/user32/misc.c
+++ b/dlls/user32/misc.c
@@ -471,6 +471,7 @@ BOOL WINAPI GetMonitorInfoW(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo)
 #ifdef __i386__
 /* Some apps pass a non-stdcall callback to EnumDisplayMonitors,
  * so we need a small assembly wrapper to call it.
+ * MJ's Help Diagnostic expects that %ecx contains the address to the rect.
  */
 struct enumdisplaymonitors_lparam
 {
@@ -491,6 +492,7 @@ __ASM_STDCALL_FUNC( enumdisplaymonitors_callback_wrapper, 16,
     "pushl 16(%ebp)\n\t"
     "pushl 12(%ebp)\n\t"
     "pushl 8(%ebp)\n\t"
+    "movl 16(%ebp),%ecx\n\t"
     "call *(%eax)\n\t"          /* call orig->proc */
     "leave\n\t"
     __ASM_CFI(".cfi_def_cfa %esp,4\n\t")




More information about the wine-cvs mailing list