Commit graph

159021 commits

Author SHA1 Message Date
Akihiro Sagawa
861811206c winmm/tests: Add MCI_DGV_WINDOW_STATE tests. 2022-08-19 22:45:18 +02:00
Akihiro Sagawa
04dc281207 mciqtz32: Don't stretch video destination for a popup or child window. 2022-08-19 22:45:18 +02:00
Alexandre Julliard
e28c2caac0 comctl32/tests: Use client coordinates for right click test.
Fix the corresponding message sequences.
2022-08-19 22:45:18 +02:00
Aurimas Fišeras
49ba42d855 po: Update Lithuanian translation. 2022-08-19 22:45:18 +02:00
Huw Davies
25ac708dad maintainers: Remove advice about Cc'ing patches. 2022-08-19 22:45:18 +02:00
Zhiyi Zhang
58b477d158 win32u: Choose a smaller ppem to avoid exceeding the requested font height.
When height > 0, CreateFontA/W() should not return a font face exceeding the requested height.
For instance, Tahoma has 2049 units of ascent, 423 units of descent and its units per EM square is
2048. When requesting a font 20 pixels in height, ppem = units_per_EM * requested_height / (ascent + descent)
= 2048 * 20 / (2049 + 423) = 16.57 ~= 17. When getting the resulting height back from the ppem,
resulting_height = (ascent + descent) * ppem / units_per_EM = (2049.0 + 423) * 17 / 2048 = 20.52
~=21. So it ends up getting a larger font than requested and violates the spec.

Fix Nancy Drew: Legend of the Crystal Skull crash at start.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-19 22:45:18 +02:00
Zhiyi Zhang
821b36e00b gdi32/tests: Add more tests for GetTextMetrics().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-19 22:45:18 +02:00
Jiajin Cui
53f6d82e69 win32u: Don't allow a replaced font to be a replacement.
This is to prevent replacement loops.
2022-08-19 22:45:18 +02:00
Jiajin Cui
88ead398eb win32u: Ensure that either the primary or secondary name is in English. 2022-08-19 22:45:18 +02:00
Konstantin Romanov
0b18d0c825 kerberos: Fix condition for create_context_handle in kerberos_SpInitLsaModeContext and kerberos_SpAcceptLsaModeContext.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53472
2022-08-19 22:45:18 +02:00
Robert Wilhelm
ccc001ee43 scrrun: Avoid memory leak in error case. 2022-08-19 22:45:18 +02:00
Robert Wilhelm
1f4c48a000 scrrun: Correct string length returned from GetTempName.
You have to pass string length without terminal null to SysAllocStringLen.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53569
2022-08-19 22:45:18 +02:00
Robert Wilhelm
412e1de2b4 scrrun: Add test for correct string length returned from GetTempName. 2022-08-19 22:45:18 +02:00
Jacek Caban
a34a403723 winex11: Implement wow64 thunks. 2022-08-18 21:42:32 +02:00
Jacek Caban
29f320edd9 win32u: Move process initialization to NtUserInitializeClientPfnArrays.
On wow64 64-bit win32u.dll is always loaded, causing win32u.so to
initialize at earlier stage than it would otherwise do. This patch
makes it more consistent across environments.
2022-08-18 21:42:27 +02:00
Jacek Caban
a17bb304a0 wow64win: Fix NtGdiDdDDICreateDevice thunk. 2022-08-18 21:42:27 +02:00
Jacek Caban
50bbaf9d5e win32u: Fix handling uninitialized process_layout. 2022-08-18 21:42:27 +02:00
Jacek Caban
95791ea044 user32: Move dialog proc setting implementation from win32u. 2022-08-18 21:42:27 +02:00
Jacek Caban
577fbb0ff1 user32: Move dialog proc getting implementation from win32u. 2022-08-18 21:42:26 +02:00
Zhiyi Zhang
e2a725621a comctl32/edit: Don't repaint immediately when losing focus.
Ignore some messages for the parent window because the "Kill focus" message sequence starts
succeeding with this commit but sometimes those messages appear on Wine and cause random test
failures. Those messages are not interested in the tests so ignore them.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Zhiyi Zhang
a336b43a93 comctl32/edit: Don't repaint immediately when getting focus.
Fix MSXML 3.0 installer username edit control missing part of its edge. The application has a static
control overlapping an edit control. Repainting the edit control immediately will cause the edit
control to be painted under the static control.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Zhiyi Zhang
2a27ffe423 comctl32/tests: Test that changing focus for edit controls doesn't repaint immediately.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Zhiyi Zhang
2aa54a90bd user32/edit: Handle IME composition result string only when EIMES_GETCOMPSTRATONCE is set.
If EIMES_GETCOMPSTRATONCE is not set, WM_IME_COMPOSITION with LPARAM set to GCS_RESULTSTR should be
passed to the default window procedure according to MSDN.

Fix some windows based on edit control not being able to input Chinese.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Zhiyi Zhang
ac9c3ef5aa user32/edit: Let DefWindowProcA/W() handle WM_IME_CHAR.
So that WM_IME_CHAR will be converted to WM_CHAR in DefWindowProcA/W().

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Zhiyi Zhang
89ee2b0204 user32/edit: Implement EM_GETIMESTATUS.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Zhiyi Zhang
6baf1198ba user32/edit: Implement EM_SETIMESTATUS.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Zhiyi Zhang
d06f4a5ed2 user32/tests: Add IME tests for edit control.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Zhiyi Zhang
0c78cfce97 user32/tests: Link directly to imm32.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-08-18 21:42:20 +02:00
Nikolay Sivov
2a5cf1b62a mfreadwrite/writer: Implement Flush().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-18 21:42:19 +02:00
Nikolay Sivov
b3a01e2bf0 mfreadwrite/writer: Implement PlaceMarker().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-18 21:42:19 +02:00
Nikolay Sivov
4e410f0769 mfreadwrite/writer: Reference user callback.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-18 21:42:19 +02:00
Nikolay Sivov
862ac14e10 mfreadwrite/writer: Add sample/marker queue for each stream.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-08-18 21:42:19 +02:00
Piotr Caban
e047352193 msvcp71: Use MultiByteToWideChar in _Fiopen implementation.
Spotted by Yeshun Ye.
2022-08-18 21:42:19 +02:00
Jacek Caban
4a3c7e2758 wow64win: Use LongToHandle for user handles conversion. 2022-08-17 19:23:19 +02:00
Jacek Caban
44b706f364 wow64win: Use in-place conversion in NtUserDrawText thunk. 2022-08-17 19:23:19 +02:00
Jacek Caban
35cf1fde3c wow64win: Fix output handling in NtUserTrackMouseEvent thunk. 2022-08-17 19:23:19 +02:00
Jacek Caban
bbc14c9a11 wow64win: Fix NtUserThunkedMenuItemInfo thunk. 2022-08-17 19:23:19 +02:00
Jacek Caban
1300cbcb21 wow64win: Support GCLP_MENUNAME in NtUserSetClassLongPtr thunk. 2022-08-17 19:23:19 +02:00
Jacek Caban
ab6df6348d wow64win: Fix handling NULL input32 in NtUserSendInput. 2022-08-17 19:23:19 +02:00
Jacek Caban
7bc4ca5bef wow64win: Fix NtUserGetMenuBarInfo thunk. 2022-08-17 19:23:19 +02:00
Jacek Caban
bb9bede0e5 wow64win: Fix returning strings in NtUserGetIconInfo thunk. 2022-08-17 19:23:18 +02:00
Jacek Caban
c2accdb165 wow64win: Fix NtUserGetClipboardData thunk. 2022-08-17 19:23:18 +02:00
Piotr Caban
852bbe6d54 compstui: Add CommonPropertySheetUI tests. 2022-08-17 19:23:12 +02:00
Piotr Caban
2989886a13 compstui: Add partial CommonPropertySheetUIW implementation. 2022-08-17 19:23:12 +02:00
Piotr Caban
74dded1154 include: Update ddk/compstui.h header. 2022-08-17 19:21:08 +02:00
Gabriel Ivăncescu
7be0cffa06 jscript: Implement fdexNameCaseInsensitive flag handling.
Despite common sense, native doesn't seem to look for exact match first;
it simply case-insensitively compares the props and returns as soon as it
finds one. This is also reliant on implementation details in case the object
has multiple props with same case-insensitive names, e.g. an object having
`Foo` prop, with `foo` prop on its prototype, can still find `Foo` even if
you look up `foo` instead (which matches exactly on the prototype). Which
is not always reliable, sometimes it finds the prototype first.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-08-17 19:21:00 +02:00
Alexandre Julliard
015491ab32 xml2: Import upstream release 2.10.0. 2022-08-17 19:08:23 +02:00
Alexandre Julliard
a63922d803 xslt: Import upstream release 1.1.36. 2022-08-17 19:03:19 +02:00
Alexandre Julliard
3110b72e12 mountmgr: Don't crash if connecting to dbus fails. 2022-08-17 16:45:57 +02:00
Paul Gofman
6820842579 winex11.drv: Set correct cursor when setting cursor from another thread. 2022-08-17 16:45:20 +02:00