Commit graph

163284 commits

Author SHA1 Message Date
Mohamad Al-Jaf
98d7ac0c84 include: Add windows.ui.core.idl file.
Needed for mingw Firefox build.
2023-03-31 11:11:09 +02:00
Michael Stefaniuc
6acbec1927 dinput: Remove superfluous cast to self. 2023-03-31 11:10:58 +02:00
Michael Stefaniuc
567e35ceaf dinput/tests: Drop superfluous TRUE : FALSE conditional expressions. 2023-03-31 11:10:58 +02:00
Zebediah Figura
cf4b4ff642 include: Include corecrt.h in vadefs.h.
For the __has_attribute() fallback.

Fixes: f4c3801495

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54666
2023-03-31 11:10:43 +02:00
Alistair Leslie-Hughes
3a1f5224fb msado15: Handle DBTYPE_STR type when loading recordset data. 2023-03-30 20:53:21 +02:00
Mohamad Al-Jaf
58e6c4d11c include: Add DirectXAlphaMode enum.
Needed for mingw Firefox build.
2023-03-30 20:34:28 +02:00
Michael Stefaniuc
48fdc8e08c dmsynth: Don't crash when Open() gets a DMUS_PORTPARAMS7.
Wrong sizeof check: pointer instead of referenced structure.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53704
2023-03-30 20:31:46 +02:00
Alex Henrie
8fb04515cf wldap32: Implement setting LDAP_OPT_SERVER_CERTIFICATE and add tests.
ctxt_handle is moved to the top of struct tlsw_session so that it can be
easily retrieved via LDAP_OPT_X_TLS_SSL_CTX.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54727
2023-03-30 20:28:28 +02:00
Alex Henrie
c8148d6778 wldap32: Return ~0u from ldap_modrdn* for any error. 2023-03-30 20:28:27 +02:00
Alex Henrie
0256f13184 wldap32: Implement ldap_connect. 2023-03-30 20:28:27 +02:00
Rémi Bernon
50352739ca winemac: Use the default IME implementation for stubs. 2023-03-30 19:00:25 +02:00
Rémi Bernon
2a4dff01bd winex11: Use the default IME implementation for stubs. 2023-03-30 19:00:25 +02:00
Rémi Bernon
32c5b57ac8 imm32: Return TRUE from ImmIsIME with any HKL. 2023-03-30 19:00:25 +02:00
Rémi Bernon
3d694c8118 imm32: Add a default implementation for IME functions.
To be used by graphics drivers.
2023-03-30 19:00:23 +02:00
Rémi Bernon
f24479793b imm32: Introduce new input_context_init helper. 2023-03-30 19:00:23 +02:00
Rémi Bernon
538d48e3f9 imm32: Select current IME on input contexts when needed. 2023-03-30 19:00:23 +02:00
Rémi Bernon
1b778dbea7 imm32: Send WM_IME_SELECT messages when IME is activated. 2023-03-30 19:00:23 +02:00
Rémi Bernon
e64e4e7461 imm32: Pass the HIMC to the IME UI window IMMGWL_IMC.
Instead of the imc pointer.
2023-03-30 19:00:21 +02:00
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