Commit Graph

88886 Commits

Author SHA1 Message Date
Eric Kohl
3733f5f71e [DHCPCSVC] Add DhcpDeRegisterParamChange and DhcpRegisterParamChange stubs 2026-05-23 14:49:29 +02:00
Timo Kreuzer
7f459b49f0 [WIN32K:NTGDI] Fix brush origin for pattern painting
Use pdc->ptlFillOrigin (which is adjusted by the Window origin already) instead of pdc->pdcattr->ptlBrushOrigin.
Fixes several gdiplus_winetest:brush tests
2026-05-22 18:23:42 +00:00
Nguyen Duc Thinh
20b89d5413 [TRANSLATION] Add Vietnamese (vi-VN) translation (#9001)
Add Vietnamese translation for Calc, Solitaire, Notepad, RAPPS, Setup and Explorer
2026-05-22 11:39:34 +00:00
Hermès Bélusca-Maïto
e45a75888c [BOOTDATA] Cleanup BitBucket and useless redundant HideDesktopIcons registry entries (#9046)
- The `HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons`
  entries were redundant between hivedef.inf and hivesft.inf.
  In addition, adding them were useless, because the "Network Places"
  (network location folder) icon they were specifying is already shown
  by default (like the others) on the desktop.

  This basically reverts commit 054c755d91 (r31545) -- originally added
  for the next commit 562c812846 (r31547).
  The "reason" given by this commit was also wrong: the registration
  of the network folder is done instead in its `HKCR\CLSID\<the_clsid>`
  registry key.

- Similarly, the `HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Bitbucket`
  registry key doesn't need to be pre-created; the shell will create it
  on-demand at runtime.

  This reverts commit bab735cf05 (r35203).
2026-05-21 22:37:23 +02:00
Hermès Bélusca-Maïto
74a0ac0251 [BOOTDATA] Hide the Internet desktop icon in the Live environment (#9046)
CORE-19203
2026-05-21 22:37:22 +02:00
Hermès Bélusca-Maïto
9342ed43d9 [SHELL32] Better determine whether to hide or show shell-folder namespace items (#9046)
In `SHELL32_IsShellFolderNamespaceItemHidden()`, use `SHRegGetBoolUSValue()`
to look at both `HKEY_CURRENT_USER` with fallback to `HKEY_LOCAL_MACHINE`,
when searching for the registry value that determines whether a shell-folder
namespace item is to be hidden or shown.

Behaviour confirmed on Windows 2003.

Addendum to commit 6ae11ba09d (PR #7189).
2026-05-21 22:37:17 +02:00
Timo Kreuzer
242937b122 [KERNEL32] Fix GetEnvironmentVariable(A/W) 2026-05-21 12:07:24 +00:00
Timo Kreuzer
d119feb2c7 [RTL][NTDLL] Implement RtlExpandEnvironmentStrings 2026-05-21 12:07:24 +00:00
Timo Kreuzer
ef70bdf990 [RTL][NTDLL] Implement RtlQueryEnvironmentVariable
Make RtlQueryEnvironmentVariable_U a wrapper around RtlQueryEnvironmentVariable.
2026-05-21 12:07:24 +00:00
Timo Kreuzer
07537ae6a1 [RTL] Fix formatting of env.c
- Fix indentation
- Apply SAL2  annotations
2026-05-21 12:07:24 +00:00
Timo Kreuzer
9989b9ec1d [RTL] Improve RtlCreateProcessParameters
- Use the NT6 structure of _RTL_USER_PROCESS_PARAMETERS
- Fix string alignment to match Vista+
- Use ImageName as fallback for the CommandLine
- Use NULL-string as fallback fo RuntimeData
- Copy the environment instead of just copying the pointer
- Fixes a number of ntdll_winetest:env tests
2026-05-21 12:07:24 +00:00
Timo Kreuzer
e9a67ff1bd [RTL] Fix an NTSTATUS to dos error translation
Fixes remaining test failure in ntdll_winetest error
2026-05-21 12:07:24 +00:00
Timo Kreuzer
33a19d05f4 [RTL] Fix atom table signature
Fixes a wine test.
2026-05-21 12:07:24 +00:00
Timo Kreuzer
40a0840834 [RTL] Fix ROUND_DOWN macro for 64 bit 2026-05-21 12:07:24 +00:00
Stanislav Motylkov
216114682d [GITHUB] build-msbuild-i386: Prepare support for Visual Studio 18 2026
Add support for VS2026 as an MSBuild project generator
by checking `VisualStudioVersion` environment variable.

`windows-latest` builds will be affected by
https://github.blog/changelog/2026-02-05-github-actions-early-february-2026-updates/#windows-server-2025-with-visual-studio-2026-image-now-available-for-github-hosted-runners

> The migration to the new Visual Studio 2026 image will start on June 8, 2026.

Closes #8998.
2026-05-20 19:56:10 +03:00
Jose Carlos Jesus
2722bf811e [SYSSETUP] Improve Portuguese (pt-PT) translation (#9021) 2026-05-20 18:54:20 +03:00
Jose Carlos Jesus
9a9f312f88 [WINLOGON] Update Portuguese (pt-PT) translation (#8976) 2026-05-20 18:26:18 +03:00
Václav Zouzalík
0ea9354ac4 [MSGINA] Update Slovak (sk-SK) translation (#8950) 2026-05-20 16:32:42 +03:00
Hasan Eliküçük
81e6f50848 [TRANSLATION] Update and improve Turkish (tr-TR) translation (#9018)
- [REGEDIT] Update and improve Turkish (tr-TR) translation
- [TASKMGR] Update Turkish (tr-TR) translation
- [CMD] Update Turkish (tr-TR) translation
- [CABVIEW] Update Turkish (tr-TR) translation
- [BROWSEUI] Update Turkish (tr-TR) translation
2026-05-19 18:50:18 +03:00
Timo Kreuzer
865ed62ef1 [KERNEL32_APITEST] Update tests to reflect ReactOS behavior 2026-05-19 14:40:49 +00:00
Timo Kreuzer
e1e3b8aa3d [KERNEL32] Check for NULL lpBytesReturned
Add NULL check for lpBytesReturned to match Windows 8+ behavior, which Wine code relies on.
2026-05-19 14:40:49 +00:00
Timo Kreuzer
6ef4ddb83d [KERNEL32_APITEST] Add a test for NULL lpBytesReturned 2026-05-19 14:40:49 +00:00
Timo Kreuzer
72bfa0c88b [KERNEL32] Improve/fix ReadFile/WriteFile
- Add SAL2 annotations
- Initialize Iosb, otherwise the function will return uninitialized data on failure
- Add NULL check for lpNumberOfBytesWritten/lpNumberOfBytesRead to match Windows 8+ behavior, which Wine code relies on.

See CORE-20559 and CORE-17376
2026-05-19 14:40:49 +00:00
Timo Kreuzer
b8bf0089de [KERNEL32_APITEST] Add tests for ReadFile and WriteFIle 2026-05-19 14:40:49 +00:00
Timo Kreuzer
15fa25299f [RTL][NTDLL][KERNEL32] Implement (Rtl)GetProductInfo 2026-05-19 14:40:01 +00:00
Timo Kreuzer
50985d9702 [NTDLL_APITEST] Add a test for RtlGetProductInfo 2026-05-19 14:40:01 +00:00
Timo Kreuzer
11ab9c2717 [XDK] Add missing PRODUCT_* definitions 2026-05-19 14:40:01 +00:00
Hasan Eliküçük
743dab2fbc [FONTVIEW] Update Turkish (tr-TR) translation (#9011) 2026-05-19 16:22:31 +03:00
Anupam Mediratta
85a3149472 [HALARM] Bound early debug print formatting (#9017)
Replace unbounded vsprintf() call in DbgPrintEarly() with vsnprintf()
when formatting into a fixed-size 1024-byte stack buffer in ARM HAL.

Automated security fix generated by Orbis Security AI.

CORE-17604

Co-authored-by: OrbisAI Security <mediratta01.pally@gmail.com>
2026-05-16 17:45:10 +05:30
Katayama Hirofumi MZ
146e1415d0 [MSPAINT] Update cursor shape for brush and rubber (#8974)
Improve UI/UX by updating mouse
cursor shape.
JIRA issue: CORE-20520
- Add CStyledCursor class.
- Enhance CCanvasWindow::OnSetCursor
  for TOOL_BRUSH and TOOL_RUBBER.
- Add CCanvasWindow::m_hBrushCursor
  CCanvasWindow::m_hRubberCursor to
  keep cursor shapes.
- Send WM_SETCURSOR from ToolsModel
  to update the cursor shape.
Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2026-05-19 10:23:58 +09:00
Ahmed Arif
0e64048812 [NDK][RTL] Fix packing leak and ARM64 heap layouts (#9020)
Stop `PS_JOB_TOKEN_FILTER`'s pack(1) scope from leaking into `EJOB`, which misaligns kernel fields on ARM64.

Use the Win64 heap entry layout on ARM64 and assert the heap metadata offsets verified against NT ARM64 symbols.

Keep heap alignment masks pointer-sized and size `STACK_TRACE_DATABASE` `ERESOURCE` padding for all Win64 targets.

CORE-18200
2026-05-18 23:48:41 +02:00
Ahmed Arif
4da86123f4 [MEDIA][CMAKE] Stop .msstyles and .tlb modules from rebuilding on every ninja invocation (#9003)
Move 'xdk' from `OBJECT_DEPENDS` (which forces RC recompilation when xdk changes) to `add_dependencies()` at the target level (which only ensures build order without cascading into recompilation).

This applies to all 5 theme msstyles (Lautus, Lunar, Mizu, Modern, Blackshade) and 3 TLB modules (stdole2, stdole32, mshtml).

Addendum to commit 1628f5e682 (PR #8576).
2026-05-18 23:31:48 +02:00
Whindmar Saksit
879e1cff63 [INCLUDE/WINE] Don't use DECLSPEC_IMPORT in shlwapi.h (#9034)
This fixes wscript.exe crashing on .wsf files because of delay-loaded shlwapi, the bug was introduced in  6762703 (PR #8419)
2026-05-18 23:30:31 +02:00
Eric Kohl
bd363a821e [NETCFGX] Improve INetCfgComponentControl::ApplyPnpChanges
Pass a pointer to the INetCfgPnpReconfigCallback interface in the ApplyPnpChanges method.
2026-05-18 22:23:29 +02:00
Katayama Hirofumi MZ
e148366e9a [SHLWAPI][SDK] Support FixSlashesAndColonA (#9040)
Implementing missing features...
JIRA issue: CORE-19278
- Implement FixSlashesAndColonA function.
- Modify shlwapi.spec.
- Add prototype into <shlwapi_undoc.h>.
2026-05-18 21:19:01 +09:00
Eric Kohl
fb47d37a49 [DHCPCSVC][PSDK][IDL] Improve DhcpRequestParams and add DhcpUndoRequestParams stub
Add a call into the server side for DhcpRequestParams.
2026-05-17 13:16:30 +02:00
Katayama Hirofumi MZ
df7c1fbc6b [NTGDI][FREETYPE] Remove dead parameters (#9022)
Improve simplicity for future.
JIRA issue: CORE-8466
- Remove the 1st parameter (PDC) of
  TextIntUpdateSize function.
- Remove the 1st parameter (PDC) of
  IntRequestFontSize function.
2026-05-17 09:58:56 +09:00
Katayama Hirofumi MZ
4e2cca167d [WINLOGON] Optimize StartLsass and StartServicesManager (#9016)
Optimize for speed.
JIRA issue: N/A
Do not initialize the STARTUPINFO member, which is already
filled with zeros, with zeros, in StartLsass and
StartServicesManager functions.
Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2026-05-17 08:42:32 +09:00
Katayama Hirofumi MZ
99252d7f94 [REACTOS] Add WS_TABSTOP to IDD_SUMMARYPAGE IDC_CONFIRM_INSTALL (#9014)
Due to resource compiler (windres)'s
bug, WS_TABSTOP style wasn't added
to IDC_CONFIRM_INSTALL checkbox
(I've confirmed WS_TABSTOP lackness
on reactos.exe with Resource Hacker
and RisohEditor). This PR will improve
keyboard usability.
JIRA issue: N/A
- Add WS_TABSTOP style to
  IDC_CONFIRM_INSTALL checkbox
  in IDD_SUMMARYPAGE resource
  dialog.
2026-05-17 06:36:00 +09:00
Timo Kreuzer
a7f658e322 [NTOS:IO] Fix IopGetBusTypeGuidIndex
- Use a global structure instead of pointer
- Allocate only the GUID buffer
- Keep track of allocated size and number of GUIDs
- Grow in steps of 8 GUIDs
- Use ExAllocatePoolWithTag instead of ExAllocatePool
- Use IsEqualGUID

See CORE-12791
2026-05-16 21:07:55 +00:00
Ahmed Arif
1ed6179ea8 [ASMPP] Improve MASM translation for Clang IAS (#8981)
* [ASMPP] Translate MASM NOT as bitwise complement

MASM NOT is a bitwise operator. Emitting C/GAS logical negation changes numeric constant values, for example X87XAM_BAD becomes 0 instead of 0xf800.

* [ASMPP] Support additional MASM expression operators

Map MASM expression operators through a single helper and add support for shr, eq, ne, lt, le, gt, and ge. This keeps existing and/or/shl/not handling while allowing expressions outside the instruction-token set.

* [ASMPP] Translate MASM if expressions

Handle plain MASM if through the expression translator so operators like ne are emitted as Clang/GAS syntax. Keep ifdef, ifndef, else, and endif on the existing directive path.

* [ASMPP] Handle RIP-relative numeric offsets

Keep constant +/- offsets before the emitted [rip] suffix so Clang IAS sees forms like symbol+4[rip] instead of the invalid symbol[rip]+4.

* [ASMPP] Balance FRAME procedure unwind directives

Clang IAS rejects .func/.endfunc and requires .seh_endproc or .cfi_endproc to match an active frame. Track whether each PROC line contains FRAME, including forms such as PROC PRIVATE FRAME, and emit the closing unwind directive only for framed procedures.

* [ASMPP] Simplify whitespace skipping for RIP offsets
2026-05-16 21:06:52 +00:00
Timo Kreuzer
ae71db5608 [GDIPLUS] Sync to Wine-10.0 2026-05-16 10:43:08 +00:00
Timo Kreuzer
6cabd9530a [KERNEL32_VISTA] Add TryAcquireSRWLockExclusive 2026-05-16 10:43:08 +00:00
Timo Kreuzer
44e322b4f2 [NTDLL_VISTA] Add RtlTryAcquireSRWLockExclusive 2026-05-16 10:43:08 +00:00
Timo Kreuzer
e62eea07f8 [GDIPLUS_WINETEST] Skip failing tests on Vista 2026-05-16 10:43:08 +00:00
Timo Kreuzer
04c7639769 [GDIPLUS_WINETEST] Fix crash on Vista
GdipDrawImageFX isn't available pn Vista
2026-05-16 10:43:08 +00:00
Timo Kreuzer
e6a61fb3c7 [GDIPLUS_WINETEST] Sync to Wine-10.0 2026-05-16 10:43:08 +00:00
Timo Kreuzer
632b09f55e [SDK] include/wine/test.h: add __wine_dbg_strdup
Taken from wine-10.0
2026-05-16 10:43:08 +00:00
Timo Kreuzer
da6892ede5 [PSDK] Update gdiplus headers to Wine-10.0
This reverts most of the useless reformatting. Don't reformat wine headers. It only makes syncing harder.
2026-05-16 10:43:08 +00:00
Timo Kreuzer
07c413637e [KERNEL32_VISTA] Don't delay-import from ntdll_vista
kernel32 functions can be called during process-attach. The same must be true for kernel32_vista. Wine's msvcrt calls GetUserDefaultLocaleName in kernel32_vista during process attach, which calls RtlLcidToLocaleName in ntdll_vista. If that function is delay-loaded (which is probably not allowed anyway during process-attach), the dll will not be initialized, the default user locale is 0 and RtlLcidToLocaleName fails.
Wine code doesn't check for failure and instead continues copying an uninitialized string buffer into the heap, causing heap corruption.

After removing the (redundant) add_delay_importlibs entry, this doesn't happen any longer.

This reverts commit 4f5478d. There is no effect on memory usage, because we load ntdll_vista anyway. See CORE-13361.
2026-05-16 06:59:24 +00:00