[Bug 52716] Sending key stroke (using [System.Windows.Forms.SendKeys]::SendWait) fails (seems to go into a loop?)

WineHQ Bugzilla wine-bugs at winehq.org
Thu Jun 16 02:46:57 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52716

--- Comment #1 from Louis Lenders <xerox.xerox2000x at gmail.com> ---
Still present in wine-7.10

>From a log it goes into endless loop PeekMessage/CoregisterMessageFilter, and
just before that there`s
trace:hook:NtUserSetWindowsHookEx WH_JOURNALPLAYBACK 0x1bf3c84 0 -> 0x1007c
trace:hook:NtUserSetWindowsHookEx WH_JOURNALPLAYBACK 0x1bf3cc4 0 -> 0x2007c

With sad hack below, just stupidly returning 0 for NtUserSetWindowsHookEx it
works ok (keystroke is sent and it doesn`t get into the loop.)

So maybe the problem is in NtUserSetWindowsHookEx? 

Sad hack :

diff --git a/dlls/win32u/hook.c b/dlls/win32u/hook.c
index a271693622a..fd25ddefd27 100644
--- a/dlls/win32u/hook.c
+++ b/dlls/win32u/hook.c
@@ -73,7 +73,7 @@ static BOOL is_hooked( INT id )
  */
 HHOOK WINAPI NtUserSetWindowsHookEx( HINSTANCE inst, UNICODE_STRING *module,
DWORD tid, INT id,
                                      HOOKPROC proc, BOOL ansi )
-{
+{return 0;
     HHOOK handle = 0;

     if (!proc)

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list