Commit Graph
6034 Commits
Author SHA1 Message Date
Timo Kreuzer 02185fb226 [MSXML3] Sync with wine-10.0 2026-01-10 19:03:40 +02:00
Timo Kreuzer 79a014446b [LIBXSLT] Update to release 1.1.42 (from Wine-10.0) 2026-01-10 19:03:40 +02:00
Timo Kreuzer 1628f5e682 [CMAKE] Fix some dependencies on autogenerated headers 2026-01-10 01:32:06 +02:00
Carl J. Bialorucki c20ec94409 [KERNEL32] Check for null buffer in GetEnviornmentVariableW
Checks if lpBuffer is null before writing the null terminator to the end of it. This prevents some crashes in the kernel32 winetest sync to wine-10.0.
2026-01-09 08:54:58 -08:00
Carl J. Bialorucki 02875dec22 [NTDLL] Add stub for NtQuerySystemInformationEx()
- [NTDLL] Add a stub for a Win7+ function that we need to link to when the DLL_EXPORT_VERSION is high enough. This is needed for the kernel32 winetest sync to wine-10.0.
2026-01-09 08:54:58 -08:00
Hermès Bélusca-Maïto e616f29a24 🎆 ⚛️ ☢️ Happy New Year 2026 to the ReactOS community! 🎊 🍾 🥳
And do you know what this also means?!
...
Yes, you've guessed it...
...
It means that in few days, ReactOS will be 30 !! 🎉 🥳
2026-01-01 00:00:00 +01:00
Timo Kreuzer 19450a9a27 [LPK] Remove obsolete hack 2025-12-30 12:57:14 +02:00
Timo Kreuzer 6a92a40f4b [MSVCRT] Reimplement system/_wsystem
The new implementation is closely based on UCRT code and passes all tests for Vista+.
2025-12-30 12:57:14 +02:00
Timo Kreuzer 9e477a655d [MSVCRT-OLD] Delete old msvcrt 2025-12-30 12:57:14 +02:00
Timo Kreuzer 4aef49943f [MSVCRT] Switch to wine msvcrt 2025-12-30 12:57:14 +02:00
Timo Kreuzer a83f46aac4 [MSVCRT] Add cmake file 2025-12-30 12:57:14 +02:00
Timo Kreuzer 9a940ae628 [MSVCRT] Use __wine_RtlUnwind 2025-12-30 12:57:14 +02:00
Timo Kreuzer e7823ed584 [MSVCRT] Use process heap
This is a hack, which was used before and is still needed, because wine code uses CRT allocation functions, even when the process heap should be used.
2025-12-30 12:57:14 +02:00
Timo Kreuzer ff7fdcf4b0 [MSVCRT] Fix __gemainargs
- Fix a quote character parsing bug in cmdline_to_argv- Implement ansi version of cmdline_to_argv
- Use cmdline_to_argv(A) in __(w)getmainargs to reparse the command line from _(w)cmdln
Fixes 30 failures in msvcrt_apitest:__getmainargs
2025-12-30 12:57:14 +02:00
Timo Kreuzer 326786bb84 [MSVCRT] Set current dir environment variable in _wchdir
This fixes a number of failures of cmd_winetest batch.
2025-12-30 12:57:14 +02:00
Timo Kreuzer ba93ceafbb [MSVCRT] Don't unconditionally set errno in msvcrt_search_executable
This is a bad idea and breaks tests.
2025-12-30 12:57:14 +02:00
Timo Kreuzer 7ce189f5a0 [MSVCRT] Fix initial value of _fmode 2025-12-30 12:57:14 +02:00
Timo Kreuzer 3d8bfdd144 [MSVCRT] Comment out some x86 exception handling functions
Use our own instead
2025-12-30 12:57:14 +02:00
Timo Kreuzer d2336bead5 [MSVCRT] Fix a bug in _wctomb_l
Fixes crash in msvcrt_apitest:wctomb
2025-12-30 12:57:14 +02:00
Timo Kreuzer 86c6a4ebd7 [MSVCRT] Fix wine's broken _LDOUBLE stuff 2025-12-30 12:57:14 +02:00
Timo Kreuzer 1106678cc0 [MSVCRT] Add some missing exports
- Add _mbcasemap, __p__mbcasemap, _fileinfo, __p__fileinfo, _get_fileinfo, _set_fileinfo, _get_winver
- Add strtoll and strtoull import symbols
- Add CrtDbgReport*
- Enable a few stubs
2025-12-30 12:57:14 +02:00
Timo Kreuzer 4d20df2fd5 [MSVCRT] msvcrt.spec: Use our own math functions directly
Bypass the wine wrappers, and comment out _fpclass and ldexp in math.c, because our own functions work better.
2025-12-30 12:57:14 +02:00
Timo Kreuzer 15adae7331 [MSVCRT] msvcrt.spec: Fix sorting of exports 2025-12-30 12:57:14 +02:00
Timo Kreuzer afa93b75f9 [MSVCRT] msvcrt.spec: Add version attributes 2025-12-30 12:57:14 +02:00
Timo Kreuzer a4b20a7278 [MSVCRT] msvcrt.spec: fix architecture of some exports 2025-12-30 12:57:14 +02:00
Timo Kreuzer 3f72d983f7 [MSVCRT] msvcrt.spec: Fix up some exports 2025-12-30 12:57:14 +02:00
Timo Kreuzer 55ca43db3c [MSVCRT] Add MSVC asm code 2025-12-30 12:57:14 +02:00
Timo Kreuzer f211c68faa [MSVCRT] Make _setfp_sse available for MSVC as well
Also fix build with clang.
2025-12-30 12:57:14 +02:00
Timo Kreuzer f4e3aed649 [MSVCRT] Make msvcrt compile with MSVC 2025-12-30 12:57:14 +02:00
Timo Kreuzer fda35b6d5a [MSVCRT] Comment out _setjmp/longjmp
Our own implementation is better and passes more tests.
2025-12-30 12:57:14 +02:00
Timo Kreuzer 386642c6f8 [MSVCRT] Comment out memmove 2025-12-30 12:57:14 +02:00
Timo Kreuzer f73c6da00d [MSVCRT] Add msvcrt includes from wine-10.0 2025-12-30 12:57:14 +02:00
Timo Kreuzer 88e8fa67df [MSVCRT] Import msvcrt from wine-10.0 2025-12-30 12:57:14 +02:00
Timo Kreuzer 0fca13d108 [MSVCRT] Rename folder to msvcrt-old 2025-12-30 12:57:14 +02:00
Adam Słaboń 0edffb1eda [NEWDEV] CHSourceDlgProc: Don't set CustomSearchPath member to stack allocated buffer (#8447)
Fixes a crash when installing a driver from custom directory.
Also move the combobox handling code to the PrepareFoldersToScan() and call it instead.

CORE-20409
2025-12-29 23:22:20 +03:00
17d1c5b51a [APPHELP] Handle PE images without an import name table (#8507)
* [APPHELP] Handle PE images without an import name table

This splits the import lookup code in SeiHookImports into two helper functions - SeiPatchImportsByName and SeiPatchImportsByAddress.
Some PEs (eg. compiled with Borland toolchain or compressed with UPX) may not contain an import name table, so we use an alternative method (SeiPatchImportsByAddress) to find the imports we want to hook to by comparing the original pointers of the registered shim functions against those in IAT.

---------

Co-authored-by: Stanislav Motylkov <[email protected]>
Co-authored-by: Hermès BÉLUSCA - MAÏTO <[email protected]>
2025-12-24 13:45:17 +01:00
Timo Kreuzer c6c38551aa [LPK] Rewrite LPK_ApplyMirroring
Don't use version.dll APIs! This code runs during DLL process attach and all it can call is ntdll and kernel32.
There is still a hack, that calls GetFileVersionInfoSizeW, which is required for some reason, otherwise comctl32_winetest tooltips starts to fail.
It has possibly something to do with the initialization order of loaded DLLs.
2025-12-18 11:00:06 +02:00
Timo Kreuzer 1a173646d6 [CRYPT32] Sync CertGetNameStringA with wine-10.0
Fixes buffer underrun in crypt32_winetest str
2025-12-12 12:21:53 +02:00
Timo Kreuzer 936c0e70e8 [KERNEL32_VISTA] Export hack for GetSystemTimePreciseAsFileTime 2025-12-12 12:21:53 +02:00
Timo Kreuzer eba2bbd177 [CRT] Remove ftol2_sse 2025-12-12 12:21:53 +02:00
Timo Kreuzer 5cbb2c9a4c [LIBCNTPR] Implement multibyte NT version of toupper
Windows ntdll and ntoskrnl export a multibyte capable version of toupper (not tolower though!)
The internal version is kept as it is, because the multibyte version requires unicode tables to be set up and doesn't support IRQL > APC_LEVEL.

Why though would toupper (but not tolower) support raw, undecoded multibyte characters, you might ask. Well I don't know, but someone at MS must have decided that this is a good idea, and winetests show this is how it behaves.
2025-12-10 09:55:30 +02:00
Timo Kreuzer ba14c5f390 [KERNEL32] Use wine case mapping instead of ntdll
Previously tolowerW/toupperW was defined to towlower/towupper, which was imported from ntdll. These functions don't work correctly though. Instead use wine's case mapping table.
The "unhacking" is done in k32.h, because the original hacks in wine/unicode.h are still needed in other places.
Fixes 1 LCMApString test and prevents further regression when fixing iswctype in libcntpr.
2025-12-10 09:55:30 +02:00
Timo Kreuzer f5d44e1081 [REACTOS] Remove unneeded __ROS_LONG64__ 2025-12-01 22:10:06 +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 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
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
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