Commit Graph
89008 Commits
Author SHA1 Message Date
Timo Kreuzer 2dd8a784c7 [SHLWAPI] Forward some functions to shcore.dll
Some have a forwarder in the spec file, some will export the import-stub. This is how Wine has it.
2026-06-18 23:27:41 +00:00
Timo Kreuzer d829baa006 [SHLWAPI] Use malloc/free instead of HeapAlloc/HeapFree
This is what wine does. To avoid a dependency on msvcrt, link crtheap library, that provides simple wrappers around HeapAlloc, etc.
2026-06-18 23:27:41 +00:00
Timo Kreuzer 4d8ce043c4 [SHLWAPI] Add StrFormatByteSizeEx from Wine-10.0 2026-06-18 23:27:41 +00:00
Timo Kreuzer aac9cd589d [SHLWAPI] Reduce diff to wine-10.0 2026-06-18 23:27:41 +00:00
Timo Kreuzer 0c2acefd64 [SHLWAPI] Switch Vista checks from preprocessor to dynamic
Check the OS version in the PEB to decide how to handle certain nthings.
This allows to keep NT5 backwards compatibility, even if the the code is compiled for Vista, which is needed for Wine code.
2026-06-18 23:27:41 +00:00
Timo Kreuzer 403da61347 [SHCORE] Apply some fixes that we have in shlwapi 2026-06-18 23:27:41 +00:00
Timo Kreuzer 628ce75acd [SHCORE] Import from Wine-10.0 2026-06-18 23:27:41 +00:00
Timo Kreuzer 2013ec6ede [SHCORE_WINETEST] Import from WIne-10.0 2026-06-18 23:27:41 +00:00
Timo Kreuzer 991830a0e8 [CRTHEAP] Add static library for crt heap functions
The purpose is to link to this library for wine modules that use only malloc/free/calloc/_recalloc, so they don't require to be linked to msvcrt.
2026-06-18 23:27:41 +00:00
Adam Słaboń 8aac5c4c87 [NTOS:KE][AMD64] Move KD initialization after HalInitializeProcessor call (#9177)
This is needed for PCI debugging devices whose KD modules depend
on the functions registered in HalpRegisterKdSupportFunctions().

Also it's consistent with what x86 does, and also what Win7 x64 does
(the KdInitSystem is invoked after the HalInitializeProcessor call).

Necessary for PR #9156 on AMD64. CORE-20385
2026-06-19 00:44:48 +03:00
Mohammad Amin MollazadehandHermès BÉLUSCA - MAÏTO 2351d0ea8c [SETUP:REACTOS] Fix page transition in setup wizard (#9172)
CORE-20661, CORE-13525

The GUI-mode setup was asking the user for device configuration and installation
destination partition, even when upgrading or repairing an existing installation.
It doesn't make sense to ask: e.g. you shouldn't be able to upgrade an installation
in C: to D: partition; and the setup ignores what the user chooses: e.g. if your
installation is using a 1024x768 resolution, choosing another resolution during
the SETUP won't change the resolution.

Thus, the setup should skip these pages without asking anything from user.
This is also consistent with USETUP's behavior.

- Set `InstallPartition` and `InstallationDirectory` to selected repair/upgrade
  target volume and directory.
- Jump to the Summary page from the Install type/upgrade pages.
- Return to the Install type/upgrade page when navigating backward from the Summary page.
- Return to the Installation type page when navigating backward from the Device page.

Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>
2026-06-18 23:16:31 +02:00
Eric Kohl c1670e1614 [IFMON] Remove an unused variable. 2026-06-18 18:22:11 +02:00
Eric Kohl 59adcd8a8a [IFMON] Add the 'add address' command to the 'interface ip' context
And fix the output of the dump command.
2026-06-18 17:57:20 +02:00
Katayama Hirofumi MZ ee60345493 [MSPAINT] Zooming and cursor shape (#9125)
#8974 implemented custom mouse
cursor shapes. However, the custom
cursor shape didn't consider zooming.
This PR applies zooming to the
custom cursor shapes.
JIRA issue: CORE-20520
- Enhance CStyledCursor for
  zooming.
- Enhance CopyMonoImage and
  CopyDIBImage for stretch mode.
- Add DEFAULT_ZOOM constant
  (1000).
- Send WM_SETCURSOR message
  on ToolsModel::SetZoom.
- Improve accuracy of Zoomed
  and UnZoomed functions by
  using MulDiv function.
2026-06-17 23:39:56 +09:00
Katayama Hirofumi MZ b7932431e7 [SDK][SHELL32_APITEST][USER32_APITEST] Update <msgdump.h> to version 21 (#9171)
Modernize development tools.
JIRA issue: N/A
- Update <msgdump.h> to
  version 21.
- Adapt shell32_apitest and
  user32_apitest.
2026-06-17 23:37:30 +09:00
Eric Kohl ace5f8bde9 [NETSH][IFMON] PrintMessageFromModule must use ConResMsgPrintfExV to print messages
- Update the format strings in ifmon.dll.
2026-06-17 16:15:14 +02:00
Eric Kohl 40a1951b65 [NETSH] Fix the command order in the help texts 2026-06-17 15:21:12 +02:00
Eric Kohl 07ce53e846 [IFMON] Implement the 'set dns' command
- Replace some magic values.
- Improve some parameter checks in the 'set address' command.
2026-06-17 11:29:08 +02:00
Ahmed Arif 69474b3190 [NTOS:OB] Replace the joke debug print in NtWaitForMultipleObjects with a proper diagnostic (#9163)
Addendum to commit f543c860f7 (r69399).
2026-06-16 18:06:18 +03:00
Mohammad Amin MollazadehandMaotong Zhang ea313e6129 [MSI] Fix not showing combobox items (#9165)
Import fix from Wine-11.6, commit https://github.com/wine-mirror/wine/commit/46e5cabca7be1d09d561f6203f073a7bff385d5d

msi: Add ComboBox items, using value if text does not exist.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56296

PR #8971 will upgrade module to Wine-10.0,
so guard the change with `#ifdef __REACTOS__`. Fixes CORE-15709.

Co-authored-by: Maotong Zhang <[email protected]>
2026-06-16 17:52:31 +03:00
Mohammad Amin Mollazadeh 91146de1cd [KERNEL32] BasepCopyFileExW: Check dwCopyFlags properly (#9133)
The function didn't check if `COPY_FILE_FAIL_IF_EXISTS` bit flag is set
or not, always failing if _any_ flags were set and the destination file
already existed.

This behavior was probably implemented under assumption that
`COPY_FILE_FAIL_IF_EXISTS` is the only valid flag, but it's not the case.
There are other flags, so this was breaking applications when they intend
to overwrite a file with e.g. `COPY_FILE_ALLOW_DECRYPTED_DESTINATION`.

These functions were affected by the problem:
- CopyFileEx - exposed by Total Commander not being able to overwrite file
- PrivCopyFileEx
- MoveFileWithProgress

Also cover `ERROR_ALREADY_EXISTS` returned by CreateFileW to match Windows
behavior, making the API tests pass.

CORE-10271
2026-06-16 16:10:23 +03:00
Stanislav Motylkov 9127a5319b [KERNEL32_WINETEST] Move ReactOS-specific tests down a bit
Avoid hitting ReactOS interprocess file sharing bugs that are not fixed
yet and use a pair of fresh temporary files for testing the function.

Addendum to 4e3729f06f (#9145). CORE-10271
2026-06-15 21:32:32 +03:00
Justin Miller 77d883a64d [SDK] Improve KDNET type headers
Split shared data types into kdnetshareddata.h

CORE-20385
2026-06-15 08:42:50 -07:00
Hervé Poussineau 9e09b5c5b9 [KDSTUB] Implement driver for KDNET extension stubs
CORE-20385
2026-06-15 08:42:50 -07:00
Hervé Poussineau 8bef246a10 [SDK] Implement type header for KDNET and its extensions
CORE-20385
2026-06-15 08:42:50 -07:00
Katayama Hirofumi MZ 9e3a4d5be5 [SHLWAPI][SDK] Support IUnknown_ShowBrowserBar (#9161)
Implementing missing features...
JIRA issue: CORE-19278
- Implement
  IUnknown_ShowBrowserBar
  function.
- Modify shlwapi.spec.
- Add prototype into
  <shlwapi_undoc.h>.
2026-06-15 22:44:46 +09:00
Serge Gautherie 5df7d05049 [NTOS:MM] MiMapViewOfDataSection(): ASSERT InheritDisposition value 2026-06-15 12:34:56 +00:00
Katayama Hirofumi MZ 29ca914bd4 [SHLWAPI] Use <new> std::nothrow (#9150)
Use preferred memory handling on memory
shortage.
JIRA issue: N/A
- Link cppstl instead of cpprt.
- Use <new> new(std::throw) for memory
  allocation.
- Return E_OUTOFMEMORY on allocation
  failure.
- Don't use <stdlib.h> min macro but use
  <cstdlib> __min.
2026-06-15 08:50:15 +09:00
Timo Kreuzer 974ae07398 [CMAKE] Change \ to / in paths for cmake
Newer CMake versions treat "\" as an escape character.
2026-06-14 11:08:02 +00:00
Katayama Hirofumi MZ 1d5d93f05f [SHLWAPI][SHLWAPI_APITEST][SDK] Support MapWin32ErrorToSTG (#9147)
Implementing missing features...
JIRA issue: CORE-19278
- Implement MapWin32ErrorToSTG function.
- Modify shlwapi.spec.
- Add prototype to <shlwapi_undoc.h>.
- Add MapWin32ErrorToSTG testcase.
2026-06-14 11:12:21 +09:00
Whindmar Saksit a83411cfef [SHELL32] Avoid SHRunControlPanel to be Vista compatible (#9114) 2026-06-14 00:24:59 +02:00
Whindmar Saksit a4610203d1 [WSCRIPT] Sync to Wine 11.10 (#9100)
Adds support for script time-out and proper script error reporting.
2026-06-13 22:20:44 +02:00
Stanislav Motylkov 4e3729f06f [KERNEL32_WINETEST] Add some ReactOS-specific tests for CopyFileEx (#9145)
Cover the bug fix in PR #9133 with API tests. CORE-10271
Add them into a suitable Wine test to cover ReactOS-specific bug.

The tests are confirmed to pass on Windows 2003, 7, and 10.
2026-06-13 22:54:15 +03:00
Eric Kohl c78c09cfbe [IFMON] Set TCPIP Properties 2026-06-13 17:32:16 +02:00
Katayama Hirofumi MZ 300e1d525d [MSVCRT][CRT][UCRT] Disable intrinsic string functions on MSVC (#9157)
VS2022 version 17.2 and later (`_MSC_VER >= 1932`) added new intrinsic
functions (`strncmp`, `strncpy`, `wcsncmp`, and `wcsncpy`).
As we implement these ourselves, we have to avoid compiler error C2169.

This problem surfaced with a recent GitHub Actions update:
https://github.com/actions/runner-images/issues/14017

Use `#pragma function(...)` to disable new intrinsic functions.
2026-06-13 18:10:15 +03:00
Stanislav Motylkov eecfbaeaa0 [SYSUTILS:PS] Fix "waitreason" array size
Addendum to c0f1450076.
2026-06-12 00:14:08 +03:00
Hermès Bélusca-Maïto c0f1450076 [NDK][XDK][SYSUTILS:PS] Update the KWAIT_REASON enumeration
Validated with the System Informer phnt headers[^1].
Versioning added for Windows 8+ values, from Vergilius[^2].

[^1]: phnt headers and documentation from:
  https://ntdoc.m417z.com/kwait_reason
  https://github.com/winsiderss/systeminformer/blob/5311c5ff7ebe0a900a792730395faf147d4451b9/phnt/include/ntkeapi.h#L49

[^2]: https://www.vergiliusproject.com
2026-06-11 22:40:28 +02:00
Ahmed Arif 7f79e1c948 [NTUSER] IntNotifyWinEvent(): Fix 4th argument copypasta (#9138)
The caret EVENT_OBJECT_SHOW notification passed OBJID_CARET as idChild,
while the other four caret events in the file correctly pass CHILDID_SELF.
2026-06-11 16:24:26 +03:00
Ahmed Arif 529f3c618d [NTUSER] Return the correct value for SPI_GETLOWPOWERACTIVE (#9135) 2026-06-11 00:32:35 +02:00
Jose Carlos Jesus f75ca87425 [DEVMGR] Update Portuguese (pt-PT) translation (#9027) 2026-06-10 20:02:49 +03:00
Amine Khaldi c8c275fe63 [JSCRIPT] Attempt to address MSVC_x64 build bot error. 2026-06-10 06:54:51 +00:00
Amine Khaldi 9de28952fb [CRYPTNET] Sync with Wine 10.0. CORE-20594 2026-06-09 20:12:33 +01:00
Amine Khaldi 137e544527 [CRYPTNET_WINETEST] Sync with Wine 10.0. CORE-20594 2026-06-09 20:12:33 +01:00
Amine Khaldi 769b7fb5c4 [JSCRIPT_WINETEST] Sync with Wine 10.0. CORE-20605 2026-06-09 20:12:05 +01:00
Amine Khaldi cd52345fe0 [SDK] wine/test.h: Centralize oleauto.h inclusion to address undefined reference to wine_dbgstr_variant even in modules that don't have automatic test discovery (no testlist.c file). CORE-20606 2026-06-09 20:12:05 +01:00
Amine Khaldi 28ed28dac1 [JSCRIPT] Sync with Wine 10.0. CORE-20605 2026-06-09 20:12:05 +01:00
Timo Kreuzer 43af5398d2 [KERNELBASE] Add kernelbase_ros.dll
This is a termporary solution to provide part of the needed APIs from wine modules, until we have a fully working kernelbase.
This one imports from msvcrt, kernel32 and advapi32.
2026-06-09 17:40:07 +00:00
Timo Kreuzer 4ba2db3c6e [KERNELBASE][PATHCCH] Unhack path.c 2026-06-09 17:40:07 +00:00
Timo Kreuzer 2820072004 [KERNELBASE] Apply reactos fixes from shlwapi SHLoadIndirectString 2026-06-09 17:40:07 +00:00
Timo Kreuzer db16f10a91 [NTDLL_VISTA] Export RtlUnicodeToUTF8N and RtlUTF8ToUnicodeN 2026-06-09 17:40:07 +00:00