Commit graph

163466 commits

Author SHA1 Message Date
Rémi Bernon 3e2edac438 win32u: Ignore some IME messages in default_window_proc. 2023-03-30 19:00:21 +02:00
Rémi Bernon 6fd3bd9b62 win32u: Ignore IME messages from IME UI windows in DefWindowProc. 2023-03-30 19:00:21 +02:00
Rémi Bernon 5c98617e1b imm32/tests: Test DefWindowProc with IME UI messages. 2023-03-30 19:00:21 +02:00
Jinoh Kang df5f9b7d2b ntdll: Don't report user (PE) stack via pthread_attr_setstack().
Today, NtCreateThreadEx() passes to pthread_attr_setstack() an address
range that spans both the user (PE) stack and the kernel (Unix) stack.

pthread_attr_setstack() accepts an address range that will be used as
the initial stack area for the thread created by pthread_create().  It
is often assumed that the initial stack will be available for the entire
duration of the thread's lifetime.

This assumption, however, conflicts with how Win32 fibers operate.
Fiber APIs allow the thread's initial stack to be freed before the
thread exits, or kept alive beyond the point of thread's termination.
This allows the lifetime of the thread's initial stack to be shorter or
longer than the originating thread's lifetime.  This is possible because
each fiber has its own stack and context, and ConvertThreadToFiber()
transfers the current thread's stack to a new fiber.

This specifically causes problems in Glibc v2.31 and earlier.  These
Glibc versions have a bug where madvise(2) with the MADV_DONTNEED flag
is called on the initial stack area on thread exit, even when the stack
was user-supplied (via pthread_attr_setstack).  Therefore, the kernel
may zero out any portion of the initial stack at any time after the
originating thread terminates, even if the stack no longer belongs to
the current thread (either freed and reallocated, or owned by a fiber).
This may ultimately lead to memory corruption.

Fix this by only passing the syscall (kernel) portion of the stack to
pthread_attr_setstack().
2023-03-30 18:52:52 +02:00
Michael Stefaniuc 8d142cb106 jscript: Use separate statements instead of the comma operator. 2023-03-30 18:49:23 +02:00
Michael Stefaniuc 4af8f42382 dinput/tests: Use separate statements instead of the comma operator. 2023-03-30 18:49:23 +02:00
Paul Gofman c0c68ee83a services: Change running service state once its process dies. 2023-03-30 18:49:16 +02:00
Paul Gofman 3580d466cc services: Factor out notify_service_state() function. 2023-03-30 18:49:16 +02:00
Paul Gofman 466a86bc54 services: Create service processes in a job. 2023-03-30 18:49:16 +02:00
Mohamad Al-Jaf 19156ccfa7 cfgmgr32/tests: Add CM_MapCrToWin32Err tests. 2023-03-30 18:47:32 +02:00
Mohamad Al-Jaf 4fab9ff230 cfgmgr32: Implement CM_MapCrToWin32Err.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53781
2023-03-30 18:47:19 +02:00
Nikolay Sivov a98d9dd9e9 d3d10/tests: Add some tests for trigonometric functions. 2023-03-29 22:29:38 +02:00
Nikolay Sivov ec47f9855e d3d10/effect: Add support for 'iadd' instruction.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-03-29 22:29:38 +02:00
Nikolay Sivov a8c78c0e2d d3d10/effect: Add support for 'imin' instruction.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-03-29 22:29:38 +02:00
Nikolay Sivov 956541c9c8 d3d10/effect: Add support for umin/umax instructions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-03-29 22:29:38 +02:00
Nikolay Sivov 4700c17c61 d3d10/effect: Add support for asin/acos/atan instructions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-03-29 22:29:38 +02:00
Nikolay Sivov 8d00428e63 d3d10/effect: Handle division by zero in 'udiv'.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2023-03-29 22:29:38 +02:00
Nikolay Sivov a54f1726c6 d3d10/effect: Add support for 'movc' instruction. 2023-03-29 22:29:38 +02:00
Biswapriyo Nath 8a07ffd965 include: Add Windows.System.DispatcherQueue definition.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
2023-03-29 22:29:38 +02:00
Biswapriyo Nath 52b832c7e3 include/windows.system.idl: Update file to newer formatting.
I.e. get rid of nested namespaces and forward declares,
separate attributes with commas and right align pointer declarations.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
2023-03-29 22:29:38 +02:00
Mohamad Al-Jaf 3503ab4e94 winecfg: Add an option to set WinRT app dark theme. 2023-03-29 22:29:38 +02:00
Rémi Bernon 585ac559b7 imm32: Create the IME UI as child of the IME default window. 2023-03-29 22:29:38 +02:00
Rémi Bernon bb2414fdb1 imm32: Re-create the IME UI window when IME changes. 2023-03-29 22:29:38 +02:00
Rémi Bernon 2504a2d7bc imm32: Keep the IME UI window on the default input context. 2023-03-29 22:29:38 +02:00
Rémi Bernon 0ddad3564f imm32: Update existing input contexts on layout change. 2023-03-29 22:29:37 +02:00
Rémi Bernon 43e22eaa76 imm32/tests: Test IME UI window and IME window presence. 2023-03-29 22:29:37 +02:00
Rémi Bernon 42f3cf1bf3 imm32/tests: Test IME UI creation with the installed IME. 2023-03-29 22:29:37 +02:00
Rémi Bernon 9117ce4185 imm32/tests: Test ImmProcessKey with the installed IME. 2023-03-29 22:29:37 +02:00
Rémi Bernon bda3ee0bd5 imm32: Ignore ImmProcessKey if hkl isn't the current layout. 2023-03-29 22:29:37 +02:00
Rémi Bernon 3a07b09079 imm32: Cleanup ImmProcessKey variables and traces. 2023-03-29 22:29:37 +02:00
Rémi Bernon 5a6ed25f6c imm32/tests: Ignore expected calls marked with todo. 2023-03-29 22:29:37 +02:00
Rémi Bernon 4b04d35773 imm32/tests: Add explicit ImmLoadIME / ImmFreeLayout calls. 2023-03-29 22:29:37 +02:00
Zebediah Figura 99cbab729b ddraw/tests: Make test_texture_wrong_caps() a bit clearer.
* Disable lighting, which affects rendering tests in non-obvious ways.

* Show that the texture is explicitly never set in ddraw7.

* Show that the diffuse color is rendered in ddraw4 and ddraw7, which is
  consistent with the texture being unset in ddraw7 and suggests that the same
  applies to ddraw4.

This may or may not help with bug 54069, but if it does not, it hopefully will
at least make the reason for failure clearer.
2023-03-29 22:29:37 +02:00
Zebediah Figura 4ac9d12522 ddraw: Reimplement SetSurfaceDesc() by recreating the wined3d texture(s). 2023-03-29 22:29:37 +02:00
Zebediah Figura 5a37d94bea wined3d: Pass parent ops to wined3d_rendertarget_view_set_parent(). 2023-03-29 22:29:37 +02:00
Zebediah Figura c81d05064f ddraw/tests: Add some tests for creating surfaces with user memory. 2023-03-29 22:29:37 +02:00
Torge Matthies 9e86596714 msvcr100: Implement _StructuredTaskCollection::_IsCanceling.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
2023-03-29 22:29:37 +02:00
Torge Matthies 58d516f00f msvcr100: Implement _StructuredTaskCollection canceling.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
2023-03-29 22:29:37 +02:00
Torge Matthies a3fc7a423f msvcr100: Use enum for _StructuredTaskCollection status bits.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
2023-03-29 22:29:37 +02:00
Torge Matthies c71dca838e msvcr100: Use enum for _StructuredTaskCollection return value.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
2023-03-29 22:29:37 +02:00
Torge Matthies fc2fa4fb02 msvcr100: Only wake task collection waiters when finished >= count.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
2023-03-29 22:29:37 +02:00
Carlos Rodriguez 318b0bbed6 wined3d: Add GPU information for another Intel UHD 630 GPU. 2023-03-29 22:29:37 +02:00
Zebediah Figura bb351c7a78 d3d11/tests: Add a broken() case for WARP in test_occlusion_query().
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53252
2023-03-29 22:29:37 +02:00
Zebediah Figura 2763e5b70f d3d10core/tests: Add a broken() case for WARP in test_occlusion_query().
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53252
2023-03-29 22:29:37 +02:00
Sven Baars cabd68728d wine.inf: Put the Clients key in the right place. 2023-03-29 22:29:37 +02:00
Sven Baars 24208208e3 kernelbase: Remove special Wow64 handling for HKEY_CLASSES_ROOT.
The server always returns the same key now.
2023-03-29 22:29:37 +02:00
Paul Gofman fb6b1c91bb taskkill: Support terminating child processes. 2023-03-29 22:29:32 +02:00
Paul Gofman 5c85145189 taskkill: Mark processes for termination in main(). 2023-03-29 11:50:58 +02:00
Paul Gofman 6cca1f5099 taskkill: Use toolhelp snapshot to get process information. 2023-03-29 11:50:58 +02:00
Paul Gofman 62ef3c5be1 taskkill: Factor out get_task_pid(). 2023-03-29 11:50:58 +02:00