user32-WM_NOTIFY: Update patchset and fix a typo.

This commit is contained in:
Sebastian Lackner 2016-03-08 03:18:57 +01:00
parent f6d216d3f6
commit 87f68ad2f4
2 changed files with 7 additions and 6 deletions

View File

@ -6699,7 +6699,7 @@ fi
if test "$enable_user32_WM_NOTIFY" -eq 1; then
patch_apply user32-WM_NOTIFY/0001-user32-Allow-to-send-post-intra-process-WM_NOTIFY-me.patch
(
echo '+ { "Sebastian Lackner", "user32: Allow to send/post intra-process WM_NOTIFY messages.", 1 },';
echo '+ { "Sebastian Lackner", "user32: Do not block sending/posting WM_NOTIFY messages.", 1 },';
) >> "$patchlist"
fi

View File

@ -1,8 +1,9 @@
From a92902452635740af38a09efa9001b8ce26db5c5 Mon Sep 17 00:00:00 2001
From 5fa145bd58a20534e11e746a4bcdb646f13e7779 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Sun, 6 Mar 2016 00:57:32 +0100
Subject: user32: Allow to send/post intra-process WM_NOTIFY messages.
Date: Mon, 7 Mar 2016 08:31:26 +0100
Subject: user32: Do not block sending/posting WM_NOTIFY messages.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
---
dlls/user32/message.c | 3 +--
dlls/user32/tests/msg.c | 30 ++++++++++++++++++++++++++++++
@ -23,7 +24,7 @@ index 9e0ce05..8c3a115 100644
SET(WM_STYLECHANGING) | SET(WM_STYLECHANGED),
/* 0x80 - 0x9f */
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 47d754f..7c9e55c 100644
index 47d754f..72d6fca 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -11188,6 +11188,35 @@ static void test_quit_message(void)
@ -50,7 +51,7 @@ index 47d754f..7c9e55c 100644
+ ret = PostMessageA(hwnd, WM_NOTIFY, 0x1234, 0xdeadbeef);
+ ok(ret == TRUE, "PostMessageA failed with error %u\n", GetLastError());
+ ret = PostMessageW(hwnd, WM_NOTIFY, 0x1234, 0xdeadbeef);
+ ok(ret == TRUE, "PostMessageA failed with error %u\n", GetLastError());
+ ok(ret == TRUE, "PostMessageW failed with error %u\n", GetLastError());
+ ret = PostThreadMessageA(GetCurrentThreadId(), WM_NOTIFY, 0x1234, 0xdeadbeef);
+ ok(ret == TRUE, "PostThreadMessageA failed with error %u\n", GetLastError());
+ ret = PostThreadMessageW(GetCurrentThreadId(), WM_NOTIFY, 0x1234, 0xdeadbeef);