Updated user32-MessageBox_WS_EX_TOPMOST patchset

Warning fixes.
This commit is contained in:
Alistair Leslie-Hughes 2022-03-23 11:42:31 +11:00
parent 356e684ae6
commit f74e9e5a2b
2 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ index b8eea98b6e..de6aa463e9 100644
UnhookWindowsHookEx(hook);
+
+ sprintf(params.caption, "pid %08x, tid %08x, time %08x",
+ sprintf(params.caption, "pid %08lx, tid %08lx, time %08lx",
+ GetCurrentProcessId(), GetCurrentThreadId(), GetCurrentTime());
+
+ params.owner = FALSE;
@ -104,7 +104,7 @@ index b8eea98b6e..de6aa463e9 100644
+ hwnd = wait_for_window(params.caption);
+ ex_style = GetWindowLongA(hwnd, GWL_EXSTYLE);
+ todo_wine_if(test[i].ex_style == WS_EX_TOPMOST)
+ ok((ex_style & WS_EX_TOPMOST) == test[i].ex_style, "%d: got window ex_style %#x\n", i, ex_style);
+ ok((ex_style & WS_EX_TOPMOST) == test[i].ex_style, "%ld: got window ex_style %#lx\n", i, ex_style);
+
+ PostMessageA(hwnd, WM_COMMAND, IDCANCEL, 0);
+
@ -126,7 +126,7 @@ index b8eea98b6e..de6aa463e9 100644
+ hwnd = wait_for_window(params.caption);
+ ex_style = GetWindowLongA(hwnd, GWL_EXSTYLE);
+ todo_wine_if(test[i].ex_style == WS_EX_TOPMOST)
+ ok((ex_style & WS_EX_TOPMOST) == test[i].ex_style, "%d: got window ex_style %#x\n", i, ex_style);
+ ok((ex_style & WS_EX_TOPMOST) == test[i].ex_style, "%ld: got window ex_style %#lx\n", i, ex_style);
+
+ PostMessageA(hwnd, WM_COMMAND, IDCANCEL, 0);
+

View File

@ -33,7 +33,7 @@ index 83a9efe0a24..4ac5b88717f 100644
hwnd = wait_for_window(params.caption);
ex_style = GetWindowLongA(hwnd, GWL_EXSTYLE);
- todo_wine_if(test[i].ex_style == WS_EX_TOPMOST)
ok((ex_style & WS_EX_TOPMOST) == test[i].ex_style, "%d: got window ex_style %#x\n", i, ex_style);
ok((ex_style & WS_EX_TOPMOST) == test[i].ex_style, "%ld: got window ex_style %#lx\n", i, ex_style);
PostMessageA(hwnd, WM_COMMAND, IDCANCEL, 0);
@@ -2263,7 +2262,6 @@ static void test_MessageBox(void)
@ -41,7 +41,7 @@ index 83a9efe0a24..4ac5b88717f 100644
hwnd = wait_for_window(params.caption);
ex_style = GetWindowLongA(hwnd, GWL_EXSTYLE);
- todo_wine_if(test[i].ex_style == WS_EX_TOPMOST)
ok((ex_style & WS_EX_TOPMOST) == test[i].ex_style, "%d: got window ex_style %#x\n", i, ex_style);
ok((ex_style & WS_EX_TOPMOST) == test[i].ex_style, "%ld: got window ex_style %#lx\n", i, ex_style);
PostMessageA(hwnd, WM_COMMAND, IDCANCEL, 0);
--