Commit graph

159967 commits

Author SHA1 Message Date
Brendan Shanks 480da372b2 xinput1_3: Set thread name for hid_update_thread_proc. 2022-10-20 20:57:28 +02:00
Zhiyi Zhang 4277b47f3e comctl32/tests: Use a toolbar with TBSTYLE_FLAT in toolbar visual tests.
Fix a test failure when theming is off. A toolbar without TBSTYLE_FLAT will fill its checked button
background rectangle when theming is inactive, overwriting the checked pattern required for the test.
2022-10-20 20:57:19 +02:00
Eric Pouech c28a749f66 ntdll/tests: Force alignment of output structures.
Some Windows version expect output to be aligned on 4 bytes.

Notes (from i386 and x86_64 tests):
- MSVC and Mingw/gcc don't layout the two variables (sdki, sdki_ex)
  the same way.
- MSVC aligns each variable on 4-byte boundary,
- MingW/GCC stores them in a 8-byte chunk, but starting from the
  end of the buffer: hence none of them is on a 4-byte boundary.

So, fixing the alignment of variables is not sufficient to
workaround the compilers' discrepancy on all source code.

I didn't find a generic way to align on 4 bytes structures of size
smaller than 4 bytes (apart from adding the DECLSPEC_ALIGN to
each of the offending structures, likely not that many though).
Ideas welcomed.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53684
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-20 18:30:32 +02:00
Alex Henrie 7d85693750 include: Add _putenv_s.
Needed to compile Tera Term.
2022-10-20 18:30:14 +02:00
Alex Henrie 1f657729e5 msvcrt: Change return type of _putenv_s to errno_t. 2022-10-20 18:30:14 +02:00
Francois Gouget 75e8f4edb7 winetest: Let the get_subtests() caller report errors.
The caller already analyses get_subtests() errors and provides
a detailed error message in the information section of the report
so the report(R_ERROR) pop up / stderr message is redundant.
2022-10-20 18:29:59 +02:00
Francois Gouget caf83eb802 wintrust: Add a trailing linefeed to an ERR() message.
Also add a full stop to match the other ERR() messages in
load_secondary_signatures().
2022-10-20 18:29:35 +02:00
Brendan Shanks 7a87da8fab mmdevapi: Set the name of internal threads. 2022-10-20 18:29:15 +02:00
Eric Pouech fe5989bbd2 oleaut32/tests: Fix test failing on UTF-8 locale.
Method decriptor's strings are internally stored in ANSI, and
potentially converted from Unicode using current code page.

Test was expecting loss in Unicode to ANSI conversion.
Adapt test to also support loss-less conversion (that's the case
when code page is UTF-8).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52873
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-20 18:29:03 +02:00
Ziqing Hui 7afdc11cd2 win32u: Add font links for MS Gothic. 2022-10-20 17:21:45 +02:00
Ziqing Hui edecac8afd win32u: Add font links for MingLiU. 2022-10-20 17:21:45 +02:00
Ziqing Hui a528dd2f8f win32u: Add font links for Microsoft JhengHei. 2022-10-20 17:21:45 +02:00
Ziqing Hui 7117303093 win32u: Add locale_dependent member to struct system_link_reg. 2022-10-20 17:21:45 +02:00
Rémi Bernon 5e106da9f1 schedsvc/tests: Add dummy flaky test count.
Fixes "Use of uninitialized value $Flaky" message in testbot reports.
2022-10-20 17:21:45 +02:00
Rémi Bernon 1c05faaa71 ntoskrnl.exe/tests: Add dummy flaky test count.
Fixes "Use of uninitialized value $Flaky" message in testbot reports.
2022-10-20 17:21:45 +02:00
Rémi Bernon 245297d5cf dinput/tests: Add dummy flaky test count.
Fixes "Use of uninitialized value $Flaky" message in testbot reports.
2022-10-20 17:21:45 +02:00
Florian Kübler d573c8d4d8 ntdll: Add CFI unwind info to __wine_syscall_dispatcher (x86_64).
This change is adding DWARF (CFI) unwind information to the
hand-written assembly of the `__wine_syscall_dispatcher` function.
This enables unwinding through the dispatcher from the Linux stack
into (and through) the Windows stack.

The general idea is that the `syscall_frame` struct contains the
content of the callee-save registers before the function call
(in particular the stack pointer and the return address). At any
point of the execution, we have a pointer into the `syscall_frame`
in $rcx, $rbp or $rsp.

For the CFI codes the general idea is that we are defining the
computations of the callee-save registers based on the
`syscall_frame` using DWARF’s `breg` instruction, rather than
relative to CFA.

This change adds a bunch of convenience macros, to (hopefully)
improve readability of the CFI instructions.

Note: Those change was used with great success for unwinding through
the dispatcher using a modified LLDB shown in the
“how-wine-works-101” (https://werat.dev/blog/how-wine-works-101/)
blog post as well as for in the Orbit profiler
(https://github.com/google/orbit), that has mixed-callstack
unwinding support.

Test: Inspect callstacks reported by the Orbit profiler while
running some Windows targets using the modified wine, as well as
verify debugging reports correct callstacks when stepping with our
modified LLDB through the dispatcher itself (so that we are able
to unwind through the dispatcher at any instruction).
2022-10-20 17:21:45 +02:00
Etaash Mathamsetty 42c0ec8a1f ntoskrnl.exe: Use LoadLibraryW for MmGetSystemRoutineAddress. 2022-10-20 17:21:45 +02:00
Etaash Mathamsetty f58c48b85e ntoskrnl.exe: Fix formatting in IoCreateSynchronizationEvent. 2022-10-20 17:21:45 +02:00
Etaash Mathamsetty e740eaee08 ntoskrnl.exe: Implement IoCreateNotificationEvent. 2022-10-20 17:21:44 +02:00
Alex Henrie e72a16b57f uuid: Add devguid.h.
Needed to compile Tera Term.
2022-10-19 21:17:34 +02:00
Piotr Caban 9e74a249df winedump: Handle NULL in get_unicode_str. 2022-10-19 21:16:29 +02:00
Gerald Pfeifer d754150893 ntdll: Fix build on systems without ENODATA.
On FreeBSD 12 and 14 ENODATA is not regularly defined. Cater to that
in fd_get_file_info() and get_file_info().
2022-10-19 21:15:55 +02:00
Alistair Leslie-Hughes 9ea45b5a2e sapi: Implement ISpObjectToken OpenKey. 2022-10-19 21:11:32 +02:00
Hugh McMaster e58052d836 kernelbase: Avoid memory leaks in GetConsoleTitleW(). 2022-10-19 21:11:00 +02:00
Eric Pouech 0c3d78269f dbghelp: Silence some FIXMEs.
In some 32bit modules, MingW/GCC generates in Dwarf debug information,
a cfa address to be computed as:
   deref(register XX + offset)
which is too complicated to be expressed through regular DbgHelp APIs.

So silence the FIXME, and report a 'too complex' error (instead of
'internal').

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52790
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-19 21:08:03 +02:00
Eric Pouech 3dee69106a dbghelp: Allow symt_block to be defined over non contiguous chunks.
This improves correctness of functions like SymFromAddr()
when searching local variables.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-19 21:07:27 +02:00
Eric Pouech eb820b37c9 dbghelp: No longer call read_range() for inline site (dwarf).
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-19 21:07:27 +02:00
Eric Pouech aa29948966 dbghelp: Rework dwarf2_get_ranges() helper.
- split in two sub helpers (one to get size, the other to fill content in)
  (this avoids reallocating buffer)
- return error in case no range is present (but range dwarf attribute is)

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-10-19 21:07:20 +02:00
Chilung Chan f31f7db286 po: Update Traditional Chinese translation. 2022-10-19 18:50:30 +02:00
Zhiyi Zhang cacb60cb6d comctl32/updown: Don't repaint when handling WM_STYLECHANGED. 2022-10-19 18:50:17 +02:00
Zhiyi Zhang b7624fb4ed comctl32/tab: Don't repaint when handling WM_STYLECHANGED. 2022-10-19 18:50:16 +02:00
Zhiyi Zhang ff514c1104 comctl32/syslink: Don't repaint when handling WM_STYLECHANGED. 2022-10-19 18:50:14 +02:00
Zhiyi Zhang 5267d32d67 comctl32/datetime: Don't repaint when handling WM_STYLECHANGED. 2022-10-19 18:50:13 +02:00
Zhiyi Zhang 07685c37aa comctl32/animate: Don't repaint when handling WM_STYLECHANGED. 2022-10-19 18:50:11 +02:00
Piotr Caban c54e0d93d9 msvcrt: Fix error handling in _mbslwr_s_l. 2022-10-19 18:49:34 +02:00
Piotr Caban 25bbc7e996 msvcrt: Fix error handling in _mbsupr_s_l. 2022-10-19 18:49:34 +02:00
Piotr Caban 71144728cf msvcrt: Add support for multi-byte characters in _mbctoupper_l. 2022-10-19 18:49:34 +02:00
Piotr Caban 3861c1e36a msvcrt: Add support for multi-byte characters in _mbctolower_l. 2022-10-19 18:49:34 +02:00
Piotr Caban cbcbaf3631 msvcrt: Fix mbcasemap initialization. 2022-10-19 18:49:34 +02:00
Bartosz Kosiorek 9b64ea2bf2 msvcrt: Add _mbsupr_s_l partial implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45273
2022-10-19 18:49:30 +02:00
Bartosz Kosiorek 01f3beef68 msvcrt: Add _mbslwr_s_l partial implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45273
2022-10-19 18:49:26 +02:00
Bartosz Kosiorek 36ea6f0210 msvcrt: Add _mbctoupper_l partial implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45273
2022-10-19 18:49:23 +02:00
Bartosz Kosiorek 0998dfe08d msvcrt: Add _mbctolower_l partial implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45273
2022-10-19 18:49:19 +02:00
Piotr Caban f3d90dbc89 comctl32: Add helper for drawing header title and subtitle obtained from HPROPSHEETPAGE. 2022-10-19 18:49:02 +02:00
Piotr Caban 831950882c comctl32: Add helper for setting header subtitle in HPROPSHEETPAGE. 2022-10-19 18:49:02 +02:00
Piotr Caban 9f42a50a0d comctl32: Add helper for setting header title in HPROPSHEETPAGE. 2022-10-19 18:49:02 +02:00
Piotr Caban e270a10423 comctl32: Add helper for getting template from HPROPSHEETPAGE. 2022-10-19 18:49:02 +02:00
Piotr Caban a3b1a9cf67 comctl32: Add helper for creating page HWND from HPROPSHEETPAGE. 2022-10-19 18:49:02 +02:00
Alex Henrie 5235526b16 include: Move strto[iu]max(_l) from stdlib.h to inttypes.h.
Needed to compile PuTTY.
2022-10-19 18:48:54 +02:00