Commit graph

161741 commits

Author SHA1 Message Date
Eric Pouech
0a7c04816f conhost: Don't print control characters for Unix tty.
They will be reinterpreted by Unix tty, leading to wrong display.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-20 22:37:02 +01:00
Eric Pouech
26699b3630 kernel32/tests: Test that control characters can be read & stored.
WriteConsole (not in processed mode) and WriteConsoleOutput* functions
allow to write control characters, which can then be read back as is.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-20 22:37:02 +01:00
Jacek Caban
4a415b0c56 win32u/tests: Add inter-process message tests. 2022-12-20 22:37:00 +01:00
Jacek Caban
d222dcc2a4 win32u: Convert inter-process messages to Unicode.
Based on user32 WINPROC_CallProcWtoA.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53744
2022-12-20 18:26:55 +01:00
Paul Gofman
2b0cd25b5f winhttp: Check for NULL lpszAutoConfigUrl in WinHttpGetProxyForUrl().
Fixes a regression introduced by
cbfe940a1e.
2022-12-19 22:25:19 +01:00
Alexandre Julliard
1efcbeacf1 d3d9/tests: Mark some of the depth bias tests as todo.
They fail on the Gitlab CI.
2022-12-19 22:25:19 +01:00
Alexandre Julliard
ab8d0dafde d3d9/tests: Mark a zero-size pixel test as todo.
It fails on the Gitlab CI.
2022-12-19 22:25:19 +01:00
Alexandre Julliard
28eafda808 d3d8/tests: Mark a zero-size pixel test as todo.
It fails on the Gitlab CI.
2022-12-19 22:25:19 +01:00
Alexandre Julliard
501ac4d496 ntdll: Match a timezone change happening at 23:59:59 with the following day.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53595
2022-12-19 22:25:15 +01:00
Rémi Bernon
29b437a53a user32/tests: Test GetPointer(Frame)Info(History) behavior. 2022-12-19 19:27:09 +01:00
Rémi Bernon
389bbf8fbb user32/tests: Move old GetPointerType tests into test_GetPointerInfo. 2022-12-19 19:27:09 +01:00
Rémi Bernon
d4aaf27333 user32/tests: Test GetPointerInfo behavior with EnableMouseInPointer. 2022-12-19 19:27:09 +01:00
Rémi Bernon
eb68155889 user32/tests: Test IsMouseInPointerEnabled behavior. 2022-12-19 19:27:09 +01:00
Rémi Bernon
73d6140d71 user32/tests: Test EnableMouseInPointer behavior. 2022-12-19 19:27:09 +01:00
Rémi Bernon
eefc7a86ac dinput/tests: Wait for each device interface to start / stop.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53525
2022-12-19 19:27:09 +01:00
Rémi Bernon
2bae0cb5f2 dinput/tests: Add a device count parameter to hid_device_(start|stop). 2022-12-19 19:27:09 +01:00
Rémi Bernon
15630ab443 dinput/tests: Use semaphores to count and notify rawinput messages. 2022-12-19 19:27:09 +01:00
Rémi Bernon
43814ac480 dinput/tests: Avoid using INFINITE timeouts. 2022-12-19 19:27:09 +01:00
Rémi Bernon
8454e2e730 dinput/tests: Remove old physical joystick tests.
They are now pretty much superseded by the more extensive tests in
joystick8.c, using virtual devices.
2022-12-19 19:27:09 +01:00
Rémi Bernon
4a5c9f7dc6 dinput/tests: Unregister rawinput devices after tests. 2022-12-19 19:27:09 +01:00
Rémi Bernon
5225aabd07 hidclass.sys: Make sure a desktop is created for the driver process.
This was previously automatically done when user32 was loaded, but since
the move of __wine_send_input to win32u, we do not need to load it any
more. Make sure we have a desktop or WM_INPUT messages won't be sent by
wineserver.
2022-12-19 19:27:09 +01:00
Huw Davies
c28258039b ntdll: Only compile get_current_teb() on linux. 2022-12-19 11:10:43 +01:00
Ryan Hendrickson
07ca9e9a81 wined3d: Recognize AMD as a vendor string. 2022-12-19 11:10:34 +01:00
Michael Stefaniuc
3f0afe8e5c dmcompos: Return a valid pointer from ComposeSegmentFromTemplate().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53941
2022-12-19 11:10:28 +01:00
Michael Stefaniuc
c92d01016b dmime: Implement the IDirectMusicSegment8_Clone() method.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53941
2022-12-19 11:10:28 +01:00
Michael Stefaniuc
354ccf3fdb dmime: Split the segment object creation into a separate helper. 2022-12-19 11:10:28 +01:00
Akihiro Sagawa
2b1cfcd011 po: Update Japanese translation. 2022-12-19 11:09:42 +01:00
Gerald Pfeifer
208b824ecd libwine: Only define exe_link when needed.
Revision 24b26f8bd6 changed FreeBSD
(and DragonFly) not to use /proc any longer. Hence we also do not
need the exe_link variable on those two platforms, either. Avoid
declaring it there.

(This avoids a compiler warning with GCC 12.)
2022-12-19 11:09:39 +01:00
Gerald Pfeifer
443805b10a winebus.sys: Fix the build without HAVE_SYS_INOTIFY_H.
find_device_from_devnode was unnecessarily guarded by HAVE_SYS_INOTIFY_H,
alas its use in process_monitor_event was not, so linking failed. Simply
make find_device_from_devnode generally available.
2022-12-19 11:08:05 +01:00
Eric Pouech
17e5ff7430 kernel32/tests: Handle some variations in process start debug events.
Win10 and Win11 can have some variations in debug events order
(linked to when thread start debug event are generated).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54159
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:50:52 +01:00
Eric Pouech
2486f5a002 kernel32/tests: Improve loading of debugger's test children results.
Even if there's a synchronisation mechanism between kernel32:debugger
and its children which ensures that child has finished writing to and
closed the blackbox logging file before reading it, there's no
guarantee that the file is not re-opened by another process: antivirus,
file indexing...
And according to [1], even the OS itself can still have opened references
to it.

So, always open/read the blackbox file in read share mode to work around
this issue.

Also, harden the code for potential errors, and be nicer in where
failures come from.

[1] https://learn.microsoft.com/en-us/windows-hardware/drivers/ifs/irp-mj-cleanup

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53456
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:50:50 +01:00
Eric Pouech
2acacb83d1 kernel32/tests: Fix failing debugger test on Win7.
Investigating the test failures in MR!1823, it turns out
that sometimes in Win7, at process exit, not all the dll unload
debug events are sent (in traces, only the last loaded dll gets the
event).
I don't know what it only shows now :-(, but that seems very
replicable (it happens every time with new job to TestBot).

So mark the case of missing unload dll debug event as broken
(still checking that the load dll debug event has been received).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:50:43 +01:00
Rémi Bernon
c20d32d392 user32/tests: Use %d to print last_bpp instead of %u. 2022-12-16 18:48:36 +01:00
Rémi Bernon
e2bc3bc40d user32/tests: Don't expect WM_DISPLAYCHANGE with the default display mode.
It looks like the behavior changes when only this test is run vs when it
is run as part of the winetest suite.

This is probably because ChangeDisplaySettingsExW only sends the message
the first time it is called (since boot?).

Having other tests run before it, one of them probably changed display
settings already and we're not getting the message anymore.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53894
2022-12-16 18:48:34 +01:00
Eric Pouech
84cf6aa20d ntdll: Implement RtlU(short|long)ByteSwap() using fastcall bits.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:48:30 +01:00
Eric Pouech
4708bb7453 ntdll/tests: Add tests for RtlU(long|short)ByteSwap().
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:48:30 +01:00
Eric Pouech
495711c251 ntdll: Fix export and calling convention of RtlUlonglongByteSwap().
The RtlU*ByteSwap() family:
- has FASTCALL calling convention
- is only exported from ntdll and ntoskrnl.exe in 32bit mode
  (didn't check ARM though)

Wine's support for RtlUlonglongByteSwap() doesn't follow these constraints.
Note: in __fastcall, 64bit paramaters are passed on the stack, to
RtlUlonglongByteSwap() calling convention acts as __stdcall.

So:
- fix ntdll.spec (resp. ntoskrnl.exe.spec) to only export
  (resp. forward) RtlUlonglongByteSwap for i386
- always provide an inline implementation in winternl.h
- reimplement ntdll.RtlUlonglongByteSwap() for i386 with
  __fastcall calling convention.
- fix ntdll/tests/rtl.c to use correct calling convention.
- add test in ntdll/tests/rtl.c for inlined version.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53536
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-16 18:48:30 +01:00
Piotr Caban
b7380acb6c shell32: Fix SHChangeNotify test failures.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53222
2022-12-16 17:08:10 +01:00
Piotr Caban
68e57283c3 shell32: Add partial ControlPanel GetAttributesOf implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52394
2022-12-16 17:08:10 +01:00
Piotr Caban
e5c47b6a79 shell32: Store NameSpace registry path in global variable. 2022-12-16 17:08:10 +01:00
Alexandre Julliard
3c235e053c winegcc: Check for Mingw-style .dll.a import libraries.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53918
2022-12-16 17:08:10 +01:00
Alexandre Julliard
cb86bb92d2 winebuild: Disable relay for non-standard fastcall parameters. 2022-12-16 17:08:10 +01:00
Alexandre Julliard
df31d3c7fe winebuild: Use new ELF tag ids also on 64-bit.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53912
2022-12-16 10:42:01 +01:00
Eric Pouech
6e19585112 kernel32/tests: Fix a debugger test failing on Windows.
Testing: kernel32:debugger, there's sometimes the following error:
debugger.c:1760: Test failed: unexpected instruction pointer 778B2A0C

Current test code has a workaround when this happens on last thread, but
this is clearly not sufficient.

Fix the test so that it grabs the thread context only in a place we're
sure it's in stopped state at breakpoint instruction.
(Current code likely catches cases where the thread is in bp signal
handling).

Rewrote the test to be in more logical order.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53143
2022-12-15 22:29:19 +01:00
Fabian Maurer
7a6eeb8c34 urlmon: Pass correct parameter to realloc and simplify code (Coverity).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2022-12-15 22:28:38 +01:00
Alex Henrie
ed0e5d9fc6 po: Update Catalan translation. 2022-12-15 22:28:34 +01:00
Alexandre Julliard
d3fa1962a0 d3d9/tests: Mark a few more message tests as flaky. 2022-12-15 22:28:28 +01:00
Paul Gofman
a88cc50365 bcrypt/tests: Test BCRYPT_PAD_NONE encryption result in test_rsa_encrypt(). 2022-12-15 22:28:28 +01:00
Paul Gofman
e1fb631687 bcrypt: Set pubkey from privkey in key_asymmetric_import(). 2022-12-15 22:28:28 +01:00
Paul Gofman
6f455e10af bcrypt: Return correct error from key_asymmetric_encrypt() if key is missing. 2022-12-15 22:28:28 +01:00