Alexandre Julliard
08cfcb71bd
ntoskrnl.exe/tests: Avoid sizeof() in traces.
2023-07-06 20:54:30 +02:00
Alexandre Julliard
23daba9abe
ntoskrnl.exe: Use nameless union/structs.
2023-07-05 17:03:30 +02:00
Andrey Gusev
5e2c9b1255
ntoskrnl.exe: Add PsSetLoadImageNotifyRoutineEx semi-stub.
...
BattlEye says it's missing.
2023-07-03 22:15:42 +02:00
Olivier F. R. Dierick
58e81212fc
ntoskrnl.exe: Add Ke386QueryIoAccessMap stub.
...
Simply print a FIXME, instead of triggering the display of a terminal window to show 'call to unimplemented function' debugging info.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54380
2023-06-19 17:41:28 +02:00
Alexandre Julliard
93630ce14e
include: Remove redundant __WINE_USE_MSVCRT checks.
2023-06-12 21:21:41 +02:00
Alexandre Julliard
36203f1b86
include: Update the PEB and TEB structures.
...
According to Geoff Chappell's information.
2023-04-19 16:44:54 +02:00
Bernhard Übelacker
07c0cd6ba5
ntoskrnl: Do not leak memory by setting input buffer to NULL.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52322
2023-04-17 18:55:41 +02:00
Etaash Mathamsetty
10765f2956
ntoskrnl.exe/tests: Add Driver Object Extension Tests.
2023-03-02 20:10:46 +01:00
Alex Henrie
b9627b996f
ntoskrnl: Add ExGetPreviousMode and test.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54378
2023-03-01 21:39:30 +01:00
Zebediah Figura
80581c608c
Revert "ntoskrnl.exe: Enforce path case in WM_DEVICECHANGE notifications.".
...
This reverts commit c489356d0b
.
2023-02-20 23:00:33 +01:00
Zebediah Figura
f745900a4b
ntoskrnl: Preserve the device instance ID case in IoRegisterDeviceInterface().
2023-02-20 23:00:33 +01:00
Zebediah Figura
297e4ae76b
ntoskrnl/tests: Expand tests for device and interface naming.
2023-02-20 23:00:33 +01:00
Zebediah Figura
d05b88dd88
user32: Map DEV_BROADCAST_DEVICEINTERFACE to ANSI for registered device notifications.
2023-02-20 23:00:33 +01:00
Alex Henrie
e60e8af0a9
ntoskrnl: Avoid calling RtlInitUnicodeString on a static constant.
2023-02-15 21:48:33 +01:00
Jinoh Kang
cfbe8aed48
ntoskrnl.exe/tests: Use loopback address in test_wsk_listen_socket.
...
Today, the driver_netio test server binds to the wildcard address
(0.0.0.0). This may trigger a firewall alert on Windows 7, and the
alert UI window may interfere with user32:msg tests.
Fix this by binding to the loopback address (127.0.0.1) instead.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53891
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54202
2023-01-24 18:13:19 +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
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
Zebediah Figura
5e3e0a519d
ntoskrnl/tests: Ignore CONFIGFLAG_FINISH_INSTALL on the child device.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53976
2022-12-13 12:44:51 +01:00
Etaash Mathamsetty
5fd79c32ed
ntoskrnl.exe: Use KeQueryMaximumProcessorCountEx for KeQueryMaximumProcessorCount.
2022-12-09 17:52:25 +01:00
Matthew Tran
c712e571d2
ntoskrnl.exe/tests: Fix incorrect HID STRING_INDEX tag value.
2022-11-21 21:21:22 +01:00
Etaash Mathamsetty
22e9093c80
ntoskrnl.exe: Implement KeQueryActiveProcessorCount.
2022-11-18 14:00:04 +01:00
Etaash Mathamsetty
38577522ea
ntoskrnl.exe: Implement KeQueryMaximumProcessorCount/Ex.
2022-11-18 14:00:04 +01:00
Zebediah Figura
f801ac97fb
ntoskrnl: Set SPDRP_CONFIGFLAGS in install_device_driver().
2022-11-17 18:01:48 +01:00
Zebediah Figura
b682102db4
setupapi: Set SPDRP_CONFIGFLAGS in SetupDiInstallDevice().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53387
2022-11-17 18:01:48 +01:00
Zebediah Figura
3a254079b9
ntoskrnl/tests: Test retrieving SPDRP_CONFIGFLAGS.
2022-11-17 18:01:48 +01:00
Etaash Mathamsetty
c212987dc5
ntoskrnl.exe: Implement KeInitializeGuardedMutex.
2022-11-10 09:49:31 +01: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
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
Etaash Mathamsetty
92d74369c8
ntoskrnl.exe: KeInsertQueueDpc stub.
2022-10-11 12:28:29 +02:00
Etaash Mathamsetty
e2a5bf7540
ntoskrnl: Implement KeGetCurrentProcessorNumberEx.
2022-09-21 21:29:20 +02:00
Etaash Mathamsetty
d1e23696df
ntoskrnl: KeSetTargetProcessorDpcEx stub.
...
Required by mrac anti cheat.
2022-09-20 09:22:47 +02:00
Alexandre Julliard
6ca6bb542e
ntoskrnl/tests: Fix affinity test when there are too many CPUs.
2022-09-12 12:46:25 +02:00
Etaash Mathamsetty
e934e746be
ntoskrnl: Implement IoCreateFileEx.
2022-08-23 16:18:51 -05:00
Etaash Mathamsetty
bafb181c42
ntoskrnl.exe: Implement KeAreAllApcsDisabled.
...
Required for vgk.sys (vanguard anti-cheat).
2022-08-23 16:18:51 -05:00
Claire Girka
3d25202eaf
ntoskrnl: Set device ContainerID from driver.
...
Using SetupDiGetDeviceRegistryPropertyW rather than SetupDiGetDeviceRegistryPropertyA
in the test, because games use the former, and Windows returns the Container ID as a
WCHAR string either way.
2022-07-25 11:22:29 +02:00
Claire Girka
d930a0cc5e
ntoskrnl/tests: Add test for getting SPDRP_BASE_CONTAINERID from PnP driver.
2022-07-25 11:22:27 +02:00
Zebediah Figura
03034f2c0e
ntoskrnl/tests: Fix a test failure.
2022-07-13 12:50:07 +02:00
Zebediah Figura
9fbdf2b434
ntoskrnl: Enumerate child devices on a separate thread.
2022-07-11 10:35:15 +02:00
Zebediah Figura
92456eb747
ntoskrnl/tests: Also test that IoInvalidateDeviceRelations() during device enumeration doesn't deadlock.
...
wineusb enumerates new devices and completes IRPs from the same thread (as if it
were an IRQ thread). On the other hand, the Hauppauge cx231xx USB driver
performs I/O from within IRP_MN_START_DEVICE. If the wineusb "IRQ" thread is
currently trying to report a new device, it won't be able to report I/O
completion, resulting in a deadlock.
Although wineusb could be modified to use more threads, these tests show that
calling IoInvalidateDeviceRelations() should not block in this situation.
2022-07-11 10:35:13 +02:00
Zebediah Figura
200d7b25ec
ntoskrnl/tests: Test asynchronicity of device PnP events.
2022-07-11 10:35:13 +02:00
Zebediah Figura
15320277f8
ntdll: Fix the calling convention for runtime 64-bit shift functions.
...
Based on a patch by Zhao Yi.
2022-07-08 19:53:18 +02:00
Alexander Wilms
1a2aa0b0be
ntoskrnl: Add KeQueryPriorityThread stub.
...
Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com>
2022-07-05 16:40:49 +02:00
Alex Henrie
f185a3acb9
ntoskrnl: Add KeLowerIrql stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53076
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2022-05-31 22:52:44 +02:00
Alex Henrie
ddca4eb838
ntoskrnl: Add KfRaiseIrql stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53076
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2022-05-31 22:52:23 +02:00
Alex Henrie
942eb6008d
ntoskrnl: Add ExNotifyCallback stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53051
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2022-05-30 22:07:43 +02:00
Eric Pouech
bb7481d24b
ntoskrnl.exe/tests: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-02 20:17:15 +01:00
Eric Pouech
4247193832
ntoskrnl.exe/tests: Use correct integral type.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-02 20:17:15 +01:00
Sven Baars
d78f234a10
ntoskrnl.exe/tests: Let CertCloseStore() delete the certificate context.
...
This should fix test failures caused by ef437b41ee
.
Signed-off-by: Sven Baars <sbaars@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-25 19:02:18 +01:00