Commit graph

158376 commits

Author SHA1 Message Date
Byeongsik Jeon 15347f30e1 po: Update Korean translation.
Signed-off-by: Byeongsik Jeon <bsjeon@hanmail.net>
2022-07-15 11:33:09 +02:00
Zhiyi Zhang 975b11be9c winefile: Use 10 DLUs for check box height.
10 DLUs is the recommended height for check boxes on Windows.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-15 11:32:54 +02:00
Zhiyi Zhang 24836f73b4 winecfg: Use 10 DLUs for check box height.
10 DLUs is the recommended height for check boxes on Windows. 8 DLUs is not enough and may cause
shrinking in HiDPI settings.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-15 11:32:53 +02:00
Zhiyi Zhang decfcdd67e cryptui: Use 10 DLUs for check box height.
10 DLUs is the recommended height for check boxes on Windows. 8 DLUs is not enough and may cause
shrinking in HiDPI settings.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-15 11:32:51 +02:00
Zhiyi Zhang 830348d78c comctl32/button: Pass the destination rectangle to GetThemePartSize() when painting check boxes.
The destination rectangle may be smaller than that of theme parts, in which case, the draw size
returned is adjusted to fit the destination rectangle. Without passing a destination rectangle
to GetThemePartSize(), the function assumes that there is no limit for destination.

This fixes winecfg check boxes missing the upper edge in 192 DPI. You may notice that the check box
bitmap is slightly shrank and so the shape is a bit off. However, this is what happens on Windows as
well when check box height is set to 8 DLUs.

GetThemePartSize() without destination rectangles are also used in other controls, but manual tests
showed that those controls don't shrink their theme background as check boxes do so they are left
unchanged.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-15 11:32:50 +02:00
Zebediah Figura 869cbc4b4b server: Set the connection time if connect() returns 0. 2022-07-15 11:31:51 +02:00
Zebediah Figura ea6f88d83f server: Do not set the socket state in complete_async_connect().
It's already set previously in sock_poll_event(). Moreover, complete_async_connect() will not always be called.
2022-07-15 11:31:50 +02:00
Zebediah Figura 647bed72f5 server: Remove the unused "flags" field from struct sock. 2022-07-15 11:31:48 +02:00
Hans Leidekker a0febe9097 secur32: Fix GnuTLS system priority file override.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53344
2022-07-14 23:38:25 +02:00
Zhiyi Zhang 9a98ad709f explorer: Fix memory leaks.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-14 21:00:54 +02:00
Georg Lehmann fa8c7a6e04 winevulkan: Update to VK spec version 1.3.221.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
2022-07-14 19:01:35 +02:00
Jeremy White dd86bd96b8 maintainers: Add trailing slashes to directories.
The gitlab scripts operate without access to the wine tree.
Requiring a trailing slash on patterns simplifies the logic
to automatically assign reviewers to MRs.
2022-07-14 17:59:27 +02:00
Zhiyi Zhang c0f4f31cdb opengl32/tests: Test wglCopyContext().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-14 10:32:32 +02:00
Jinoh Kang ded8227774 riched20: Implement ITextDocument::Undo and ITextDocument::Redo.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53289
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-14 10:32:09 +02:00
Jinoh Kang 40c54854e6 riched20: Add undo control state variable to ME_TextEditor.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-14 10:32:09 +02:00
Jinoh Kang 0cd86e010e riched20: Factor out undo-ignored status check.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-14 10:32:09 +02:00
Zebediah Figura 41d16358dc server: Remove the no longer used sock_queue_async() function. 2022-07-14 10:29:14 +02:00
Zebediah Figura cb8937801d ntdll: Use the send_socket request for NtWriteFile() on a socket.
send_socket does some extra bookkeeping that's currently missing from the
register_async path. Instead of adding it to sock_queue_async(), let's just
centralize all send requests so that they go through send_socket.
2022-07-14 10:29:12 +02:00
Zebediah Figura 9783e2e16c ntdll: Use the recv_socket request for NtReadFile() on a socket.
recv_socket does some extra bookkeeping that's currently missing from the
register_async path. Instead of adding it to sock_queue_async(), let's just
centralize all recv requests so that they go through recv_socket.
2022-07-14 10:29:11 +02:00
Zebediah Figura cc879c25d7 ws2_32/tests: Add some tests for NtReadFile() and NtWriteFile() on sockets. 2022-07-14 10:29:11 +02:00
Zebediah Figura f82068298b wined3d: Do not pause transform feedback after every draw call.
Besides being unnecessary, this triggers a bug in radeonsi (since fixed upstream), which can cause failures in d3d10core and d3d11 tests.
2022-07-14 10:26:09 +02:00
Zebediah Figura 342299cbea wined3d: Pause transform feedback in wined3d_context_gl_draw_textured_quad(). 2022-07-14 10:26:09 +02:00
Zebediah Figura 8cf48e5014 wined3d: Pause transform feedback in wined3d_context_gl_draw_shaded_quad(). 2022-07-14 10:26:09 +02:00
Zebediah Figura 93b8b6375f wined3d: Respect the client map count even for suballocated BOs.
I believe this was a mistake introduced by 831ff10200.

This fixes GL errors with multiple applications, including Ragnarok Online and
Bloodrayne: Terminal Cut.
2022-07-14 10:26:00 +02:00
Zebediah Figura 24ff5c2f5e wined3d: Clear the BO map_ptr in wined3d_bo_gl_unmap() even if the chunk is still mapped.
If we subsequently try to destroy it we will decrease the chunk map_count again, which is a reference counting error.
2022-07-14 10:25:59 +02:00
Zebediah Figura 1371021807 wined3d: Trace the chunk pointer instead of the GL buffer ID in wined3d_device_gl_allocate_memory(). 2022-07-14 10:25:57 +02:00
Gabriel Ivăncescu 7ff508838e mshtml: Use the private interface to expose onload for XMLHttpRequest.
Rather than hacking a custom prop.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-07-13 21:50:49 +02:00
Gabriel Ivăncescu cbd1ad0570 mshtml: Implement overrideMimeType for XMLHttpRequest.
We have to special case empty string since Gecko special cases them, but
IE does not.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-07-13 21:50:47 +02:00
Gabriel Ivăncescu 764c1bdb76 mshtml: Check for valid XML Content-Type for responseXML in IE10+ modes.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-07-13 21:50:47 +02:00
Gabriel Ivăncescu 06e8d06be7 mshtml: Respect LOAD_CALL_CONTENT_SNIFFERS when using detected mime type.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-07-13 21:50:47 +02:00
Gabriel Ivăncescu 59f1fdaf7f mshtml: Set the channel's content type when parsing the header.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2022-07-13 21:50:47 +02:00
Jan Sikorski a3d5026e42 wined3d: Defer destroying Vulkan compute pipelines.
Vulkan pipelines should be destroyed only after the last command buffer using
the pipeline is done executing. Since we do not track which pipelines are
encoded into which command buffers, defer destruction until the current command
buffer finishes.

Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com>
2022-07-13 19:22:45 +02:00
Torge Matthies 6d4cf5b208 msvcr120/tests: Add missing newlines to messages.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-07-13 18:38:07 +02:00
Jinoh Kang a9c357e5a9 kernelbase: Implement PrefetchVirtualMemory.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-13 16:58:09 +02:00
Jinoh Kang 7d2c03e88d kernel32/tests: Add tests for PrefetchVirtualMemory.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-13 16:58:09 +02:00
Jinoh Kang 9d9075ce5d ntdll: Implement NtSetInformationVirtualMemory (intra-process case).
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-13 16:58:09 +02:00
Jinoh Kang 442919efc5 ntdll/tests: Add tests for NtSetInformationVirtualMemory.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-13 16:28:00 +02:00
Jinoh Kang fa005a6c90 include: Add definition for NtSetInformationVirtualMemory.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-13 16:10:05 +02:00
Jinoh Kang 67e4807ba5 include: Move WIN32_MEMORY_RANGE_ENTRY from winnt.h to winbase.h.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-13 16:10:04 +02:00
Jinoh Kang 5514abce7b ntdll: Set r11 on exit from syscall dispatcher on x64.
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
2022-07-13 15:44:56 +02:00
Zhiyi Zhang d328af75fe winex11.drv: Don't compare error event serial if it's zero.
Sometimes error event serial is zero. For example, NVIDIA driver may send X_GLXCopyContext errors
with the event serial set to zero. When it's zero, previously the error handler passes the error
to the default error handler and cause application crashes.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-13 15:08:20 +02:00
Zhiyi Zhang 18ae96e5fb winex11.drv: Lock display when expecting error events.
If the display is not locked, another thread could take the error event and handle it with the
default error handlers and thus not handled by the current thread with the specified error handlers.

Fix Cladun X2 crash at start.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-13 15:08:20 +02:00
Zhiyi Zhang ed546bf190 winex11.drv: Handle X errors from glXCopyContext().
glxCopyContext() may throw X errors and cause the current process to exit. For example, Mesa doesn't
support glxCopyContext() for direct rendering contexts and ends up using the code path for indirect
rendering contexts. When Xorg receives such requests, it rejects them because they're for direct
rendering contexts and reports an X error. We also can't use indirect rendering context because
it needs to be explicitly enabled in xorg.conf and has poor performance. So handle this error before
graphics drivers implement the support.

Fix Cladun X2 crash at start.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-07-13 15:06:21 +02:00
Zebediah Figura e386cc8f87 d3d9/tests: Use a nonzero start index in test_sysmem_draw().
This uncovered a bug in the previous patch.
2022-07-13 15:03:49 +02:00
Zebediah Figura 66f37aae7e d3d9: Upload sysmem vertex buffers into the streaming buffer in d3d9_device_DrawPrimitive().
As for d3d8.
2022-07-13 15:03:48 +02:00
Zebediah Figura 50b67f9818 d3d8/tests: Use a nonzero start index in test_sysmem_draw().
This uncovered a bug in the previous patch.
2022-07-13 15:03:45 +02:00
Zebediah Figura fc0f0090f6 d3d8: Upload sysmem vertex buffers into the streaming buffer in d3d8_device_DrawPrimitive().
Bloodrayne: Terminal Cut (and Bloodrayne 2: Terminal Cut, and probably other
games in the series) streams from a SYSTEMMEM index buffer, updating it and
drawing from it every frame. This is currently slow on Wine, since each map
needs to wait for the previous upload (on the CS) to complete.

There are a few ways to avoid waiting, but this patch takes the approach of
effectively uploading from the SYSTEMMEM buffer on the client side, while using
a dynamic buffer to avoid client/CS synchronization. This brings performance
from 20-30 FPS to a (locked) 60, on NVidia GL drivers.
2022-07-13 15:03:40 +02:00
Alexandre Julliard 348eebae87 include: Remove wine/unicode.h. 2022-07-13 12:50:07 +02:00
Alexandre Julliard bd5edbe1eb server: Create new keys in the parent of a shared key.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53343
2022-07-13 12:50:07 +02:00
Alexandre Julliard adb0ff570c ntdll/tests: Add some more tests for shared Software\Classes key. 2022-07-13 12:50:07 +02:00