Commit Graph
89080 Commits
Author SHA1 Message Date
Eric Kohl b05a983f0c [DISKPART] The active and inactive commands do not work on GPT disks 2025-12-08 00:44:25 +01:00
Eric Kohl dd74eaf8cf [DISKPART] Fix message IDs 2025-12-07 13:35:53 +01:00
Eric Kohl 5a224e277d [DISKPART] GUID partition preparations
- Improve parameter handling in the setid and uniqueid commands.
- Improve error messages.
2025-12-07 12:25:25 +01:00
Eric Kohl 920153534b [DISKPART] Implement the 'convert mbr' and 'convert gpt' commands
- Show Disk UUIDs in the 'detail disk' and 'uniqueid disk' commands.
2025-12-07 10:10:10 +01:00
Stanislav Motylkov 1f3f733f6e [DISKPART] Fix copypasta. Addendum to c197e7c080 2025-12-06 17:16:55 +01:00
Eric Kohl c197e7c080 [DISKPART] Prepare for GPT support
- Use DRIVE_LAYOUT_INFORMATION_EX instead of DRIVE_LAYOUT_INFORMATION.
- Show GPT disks in the 'list disk' command.
2025-12-06 16:41:29 +01:00
Doug Lyons 0ec4dc20a7 [GDI32_WINETEST][FONTS] Disable tests for raster fonts. (#8492)
If running on REACTOS, then skip raster (bitmap) font tests in gdi32_winetests.
2025-12-05 08:48:31 -06:00
Timo Kreuzer 3c0aa7ff75 [CABINET_WINETEST] Sync to wine-10.0 2025-12-05 15:36:39 +02:00
Timo Kreuzer d260c1d2a7 [APPHELP_APITEST] Fix broken test case
ROSTESTS-408
2025-12-04 10:08:14 +02:00
Timo Kreuzer a6f38d1f43 [APPHELP_APITEST] Get rid of __ROS_LONG64__ 2025-12-04 10:08:14 +02:00
Justin MillerandHermès BÉLUSCA - MAÏTO 52006dd926 [USBCCGP][USBPORT][USBSTOR][USBHUB] Misc USB stack stability improvements. (#8453)
* [USBCCGP] CORE-18689 - Don't do a double IRP completion

* [USBPORT] CORE-17052 Handle port status better and CreateDevice
MaxPacketSize

* [USBSTOR] CORE-19773 Clamp LUN - Don't just assert on a POSSIBLE case

* [USB] Disable LIST_ENTRY_CHECKS privately for USB

* [CODEREVIEW]

Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>

* [CODEREVIEW]

Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>

---------

Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>
2025-12-03 13:14:22 -08:00
George Bișoc 054b8e00d9 [NTOS:PS] Remove deprecated code
There was some deprecated code in the ProcessSessionInformation class left to rot for oh god how so long.
Unfabricate it.
2025-12-01 22:22:12 +01:00
George Bișoc 0f30e8163e [NTOS:PS] Annotate the Query/Set related functions with SAL2
- Annotate the functions in query.c file with SAL2 of which they weren't annotated before
- Use _Out_writes_bytes_to_opt_ to further clarify the output parameter is being written to it based on the length size provided.
This is so the code analyzer understands such a parameter is being written into only the specific amount of bytes.
2025-12-01 22:22:00 +01:00
Timo Kreuzer f5d44e1081 [REACTOS] Remove unneeded __ROS_LONG64__ 2025-12-01 22:10:06 +02:00
Timo Kreuzer 72b060f8e6 [MSXML3_WINETEST] Workarounds to prevent reactos crashes
Most of these will go away, once msxml3 is synced.
2025-12-01 08:41:57 +02:00
Timo Kreuzer 4999df33bf [MSXML3_WINETEST] Sync to wine-10.0 2025-12-01 08:41:57 +02:00
Timo Kreuzer 11b9f97f8a [MSVCRT] Add import symbols for strto(u)ll
Forward these to _strto(u)i64, which are exported.
This allows to link some wine code that uses these instead of _strto(u)i64.
2025-12-01 08:41:57 +02:00
Timo Kreuzer 60aad33ed0 [NTOS:PS] Fix test breakage after Hermès
Fixes test failures in ntdll_apitest NtQueryInformationThread and NtSetInformationThread
2025-12-01 08:39:22 +02:00
George Bișoc f3e742ddef [NTOS:PS] Dump the process/thread information class names on debug logging 2025-11-30 16:56:57 +01:00
Eric Kohl 69ad0e6996 [FSTUB] Fix UsableLength calculation
IOCTL_DISK_GET_DRIVE_LAYOUT_EX returns the proper UsableLength for GPT formatted drives.
2025-11-30 13:11:41 +01:00
Hermès Bélusca-Maïto 17419ab4a2 [NDK][NTOS:PS] Add missing THREADINFOCLASS values 2025-11-28 22:08:42 +01:00
¥IGA 8289415359 [GITHUB] Update CI dependencies (#8471) 2025-11-28 23:46:42 +03:00
Daniel Zimmermann 55a3a96849 [NETSH] Fix incorrect variable usage in swprintf call (#8482)
- swprintf should call with the input string and not with the undefined allocated string from HeapAlloc.

Addendum to bfee65f62c.
2025-11-28 21:20:30 +03:00
Timo Kreuzer bb8c8eea4a [KERNEL32] Fix PAGE_EXECUTE_WRITECOPY section access in CreateFileMappingW
When PAGE_EXECUTE_WRITECOPY is requested in CreateFileMappingW, give only SECTION_MAP_EXECUTE access, not SECTION_MAP_WRITE.
2025-11-28 10:58:23 +02:00
Timo Kreuzer f4436f549f [ACPICA][UDFS][BTRFS] Fix MSVC warning C4319
"warning C4319: '~': zero extending 'uint32_t' to 'uint64_t' of greater size"
Fixes build with VS 2026.
2025-11-26 21:39:16 +02:00
Mark Jansen 06983e3967 [XML2SDB] Add basic support for including/excluding shims based on platform
CORE-20159
2025-11-25 19:32:02 +01:00
Mark Jansen eb18696e72 [APPHELP] Add basic support for wildcard matching
CORE-20159
2025-11-25 19:32:02 +01:00
Eric Kohl 1c14a7a343 [IFMON] Add the winsock helper and clean up the function declarations 2025-11-23 15:54:34 +01:00
Eric Kohl e7fd531e19 [PSDK] Improve type definitions 2025-11-23 13:19:32 +01:00
Hermès BÉLUSCA - MAÏTO 574b76e9ea [KERNEL32_VISTA] Fix a bug I've introduced while merging PR #7982 2025-11-22 23:36:05 +01:00
Ratin Gao c283b15374 [KERNEL32_VISTA] Rewrite QueryFullProcessImageName (#7982)
Follow-up of PR #7942
CORE-16145
2025-11-22 22:22:45 +01:00
Eric Kohl 0135440d50 [NETSH] Implement MakeString and FreeString
Used by the 'winsock show catalog' command.
2025-11-22 16:53:33 +01:00
Johannes Thoma b18a46e315 [NETIO] Implement an in-kernel BSD-style networking API driver
This patch adds the NETIO.SYS driver to ReactOS. NETIO.SYS
is part of Windows since NT6 (Vista).

The driver is not feature complete (meaning some functionality is
unimplemented) but does its job quite good for what it originally
was written for (which is getting WinDRBD working on
ReactOS/Windows Server 2003 SP2).

The driver re-uses parts of the AFD.SYS driver, namely those
functions that ease communitating with the transport device
interface (TDI). Other than that, following features are implemented
and should work:

 * TCP/IP networking: connect, listen, accept, read, write
 * UDP/IP networking: write

So in a nutshell TCP/IP support is completed, UDP support is
partially complete and ICMP support does not exist yet.
In particular the listen/accept mechanism allows one to write
kernel side TCP servers that one can connect to via the internet.

The netio driver is licensed under the MIT license, see the file
netio.c for more details.

Have fun with it :)

Signed-off-by: Johannes Khoshnazar-Thoma <[email protected]>
2025-11-21 21:08:03 +02:00
Johannes Thoma c425244a36 [TDIHELPERS] Move TDI helpers from AFD driver to separate directory
We want to use the TDI helper functions also in the NETIO.SYS
driver which comes with the next commit. The code was modernized
a bit (usage of DPRINT, doxygen style comments) but other than
that it was left unchanged.
2025-11-21 21:08:03 +02:00
Carl J. Bialorucki b1644362af [INCLUDE/WINE] GetNTVersion() and other changes for kernel32 winetest sync
- [INCLUDE/WINE] Add GetNTVersion() macro, useful for determining Windows versions in Wine tests we need to bring up for older Windows versions.
- [INCLUDE/WINE] Header changes needed for kernel32 winetest
- [WINETESTS] Perform any fixes needed from breaking header changes
2025-11-21 10:17:20 -06:00
Carl J. Bialorucki ad807f82b6 [INCLUDE/WINE] Fix for CORE-20373
- Don't use DECLSPEC_IMPORT for function prototypes when compiled with GCC. This is related to CORE-6504. This hack can be removed when binutils is fixed and CORE-6504 is resolved.
2025-11-21 10:17:20 -06:00
Hermès Bélusca-Maïto 46fb20d406 [VIDEOPRT] registry.c: Minor code enhancements
- Add and use `CONST_STR_SIZE/LEN` macros to get the number of bytes and
  characters for a static const string buffer, instead of invoking e.g.
  `wcslen()`, which may or may NOT be optimized out (e.g. MSVC debug builds).

- Use `UNICODE_NULL` instead of `0`.

- Transform a `DPRINT` into an `INFO_(VIDEOPRT, ...)`

- Fix an x64 warning
  `registry.c(689): warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data`
2025-11-19 16:37:55 +01:00
Hermès Bélusca-Maïto 9a478189e5 [VIDEOPRT] registry.c: Uniformize some error debug traces 2025-11-19 15:48:35 +01:00
Hermès Bélusca-Maïto 1b89086bae [HALX86] Re-enable HalpBiosDisplayReset() for x64: it actually supports display reset (#5513)
CORE-18185
Addendum to commit 215148267e

Everything that's needed (the x86 emulator with x86BiosCall) is implemented.
Fixes screen cleaning when bootvid takes over the VGA display.
2025-11-19 15:32:19 +01:00
Hermès Bélusca-Maïto 94abe8328f [HALX86] HalpBiosDisplayReset: Return x86BiosCall result (#5513) 2025-11-18 22:09:10 +01:00
Hermès Bélusca-Maïto 89d5a3dbb8 [VIDEOPRT] Implement support for dynamically choosing V86 vs. X86 emulator on x86 32-bit builds (#8451)
The choice is done by looking for the presence or absence of the
`HKLM\System\CurrentControlSet\Control\GraphicsDrivers\DisableEmulator`
registry key. For more details, see:
https://www.geoffchappell.com/studies/windows/km/hal/api/x86bios/call.htm

By default, use V86 in 32-bit Win2k3-compatible builds, otherwise
(Vista+) check the presence of the registry key.

The X86 emulator routines are exported by the HAL.DLL. They are always
exported by the non-x86 HAL. However, they may or may not be exported by
the x86 (32-bit) HAL: on NT 5.2 and below they are not exported, while
on NT 6.x (Vista+) they are.

Therefore:

- in our NT <= 5.2 x86 builds, we load the routines at runtime. If they
  aren't found, we fail emulator support initialization and fall back to
  VDM V86 support.

- in our NT 6.x (x86 or not) builds, we always directly link with the HAL
  routines, since they are guaranteed to be present there.
2025-11-18 17:01:26 +01:00
Hermès Bélusca-Maïto 6313ef9d69 [NDK] halfuncs.h: Mark importable HAL function exports with NTHALAPI 2025-11-18 13:47:08 +01:00
Doug Lyons c2a0cf1bfa [CRT] Fix Visual C++ MSDEV hang by fixing _ismbcspace (#8466)
CORE-19396

Change function _ismbcspace to match Microsoft's description.
2025-11-17 16:16:53 -06:00
Mohammed al-Ramadany ef03e090a6 [KMTESTS] ExResource fixes (#8341)
- Check Windows version at runtime for select tests
- Check ActiveEntries too on NT6+
2025-11-17 14:27:00 -06:00
5a36dd6006 [SDK] Small SDK fixes for ARM64 - Prepping for GCC work (#8458)
* [SDK] add ARM64 entry to ioaccess.h
* [SDK] Add arm64 target to win64 spec2def entry
* [SDK] Implement NtCurrentTeb for ARM64
CORE-18200

Co-authored-by: Laura Konopinska <[email protected]>
Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>
2025-11-17 05:47:53 -08:00
Hermès Bélusca-Maïto 0f9cdb395a [RPCRT4] Better handle buffers reallocation failure case (#8461)
Addendum to commit 7f1075986f (PR #8305).
Addresses review comment https://github.com/reactos/reactos/pull/8305#discussion_r2505628716

In `expand_pointer_table_if_necessary()`, if any of the `RefIdToPointer`
`XlatTable` or `StateTable` buffers failed to be reallocated, the
`realloc()` call would return NULL while the underlying buffer still be
valid. Directly assigning the reallocation result to the pointers would
then leak the buffers.

With this fix, the `realloc()` result is stored in a temporary pointer.
If the result is NULL, we free the original buffer, since the intended
code behaviour is to reset all the tables. If the result is a valid
pointer to the reallocated buffer, then we can use it instead.
2025-11-17 13:21:43 +01:00
Hermès Bélusca-Maïto 87226107f4 [WIDL] Minor cleanups following wine-10.0 sync (#8461)
Addendum to commit 8608467b84 (PR #8305).

- Remove redundant `#ifndef __REACTOS__ ... #endif` inside such an
  already existing block.
  See https://github.com/reactos/reactos/pull/8305#discussion_r2510118529

- Move the `getenv("TEMP")` ReactOS-specific fix to a better place.

- Reduce diff with respect to what we had prior to the sync.
  See https://github.com/reactos/reactos/pull/8305#discussion_r2509976210
2025-11-17 13:20:38 +01:00
Justin Miller f2c0b5f40c [WDF] Add missing NTAPIs to the NoOp functions 2025-11-16 10:29:43 -08:00
Justin Miller bc9ef01367 [WDF] HACK: Workaround PCI causing DPCs to be flushed when system
affinity is disabled
2025-11-16 10:29:43 -08:00
Eric Kohl a7b6470ab5 [MC] Remove unnecessary backspaces from net messages
Backspaces are no escape characters in messages files, percent signs are.

Thank you very much KRosUser for the patch.

CORE-19197
2025-11-16 15:42:41 +01:00