Jérôme Gardou
24a4e12a76
[NTOS:IO] Check RtlAnsiStringToUnicodeString return value when initializing Arc names
...
CORE-17637
2021-06-28 10:20:57 +02:00
Jérôme Gardou
293f823053
[NTOS:IO] Check RtlAnsiStringToUnicodeString return value when initializing ramdisk
...
CORE-17637
2021-06-28 10:20:57 +02:00
Jérôme Gardou
e961958823
[NSLOOKUP] Check WSAStartup return value
...
CORE-17637
2021-06-28 10:20:57 +02:00
Jérôme Gardou
6bf64780e4
[NET] Properly check return value of EnumServicesStatusW on first call
2021-06-28 10:20:57 +02:00
Jérôme Gardou
5aafeb473f
[FLTMC] Do not ignore failures of some functions
...
Also reduce use of magic values.
CORE-17637
2021-06-28 10:20:57 +02:00
Jérôme Gardou
46394ab80d
[RTL] In RtlReleasePrivilege, raise exception if restoring old privileges fails
...
CORE-17637
2021-06-28 10:20:57 +02:00
Jérôme Gardou
fb9ebe17bf
[RTL] When taking system volume ownership, assert that we succeeded to restore privileges
...
CORE-17637
2021-06-28 10:20:57 +02:00
Jérôme Gardou
9c5b39e25a
[RTL] Check and cascade down RtlGUIDFromString value
...
CORE-17637
2021-06-28 10:20:57 +02:00
Jérôme Gardou
900b6a5d56
[FREELDR] Check HwInterrupt return value
...
_Must_inspect_result_ is there for a reason
CORE-17637
2021-06-28 10:20:57 +02:00
Timo Kreuzer
8a68820429
[SDK] Add missing sal annotations in driverspecs.h and kernelspec.h
...
CORE-6706
2021-06-28 08:48:59 +02:00
Hermès Bélusca-Maïto
e7a5850d65
Revert "[SHELL32] Don't check for link files being targets for other link files. Addendum to 3a822e4f."
...
This reverts commit 3249a00364
.
2021-06-28 04:11:00 +02:00
Hermès Bélusca-Maïto
3199fdbd44
[SHLWAPI] Fix a trivial bug in PathFileExistsDefExtW() that seems to exist since 16+ years in Wine.
...
Suppose dwFlags == 1 | 4 (i.e. skipping the flag 2).
Then the while-loop would only run once, because at the second iteration
(after dwWhich >>= 1; has been executed once), dwWhich value == 2, but
dwWhich & 0x1 == 0, which makes the while-loop condition false.
Instead the loop should run, but the handling of the extension should be
skipped.
2021-06-28 02:19:31 +02:00
Hermès Bélusca-Maïto
8ec3580123
[SHELL32] Add the handy WHICH_DEFAULT value to the list of flags in shlwapi_undoc.h.
...
- Add as well the undocumented 0x40 dwFlags value from shlwapi!PathFileExistsDefExtW()
to the list.
- Fix a bug (also present in Win2k3) in PathResolveW() where, specifying
the PRF_DONTFINDLNK flag, would also erroneously exclude checking for
the .cmd extension as well (which was obviously NOT the original
intention, from the name of the flag and the documentation as well:
https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-pathresolve
).
Addendum to 3a822e4f
.
2021-06-28 02:19:30 +02:00
Hermès Bélusca-Maïto
3249a00364
[SHELL32] Don't check for link files being targets for other link files. Addendum to 3a822e4f
.
2021-06-28 02:19:30 +02:00
Joachim Henze
adee5ca255
[COMCTL32] Addendum to last commit ( #3674 ) CORE-17199
...
Keep that section like we had it to
support compilation on VS2010.
It does still work like that.
Addendum to commit 0.4.15-dev-2796-g e382b7bc35
2021-06-28 02:05:56 +02:00
Doug Lyons
e382b7bc35
[COMCTL32] Sync datetime.c to Wine-6.0 ( #3674 ) CORE-17199
...
Fix automatic toggling of date display on second stage setup
Update comctrl from Wine with fix.
Sync datetime.c to Wine-6.0
2021-06-28 01:18:10 +02:00
Katayama Hirofumi MZ
3a822e4f74
[SHELL32] Implement PathResolveW function ( #3762 )
...
- Implement PathResolveW function.
- Implement PathQualifyA/W functions using newly-defined PathQualifyExW function.
CORE-12665
2021-06-28 07:53:26 +09:00
Joachim Henze
81f8bcea8c
[DSOUND][WAVE] Workaround crash when recording sound in Scratch 1.4 CORE-13202
...
It regressed by SVN r44721 == git 356d4bab16092de335705e02b0e87698ec35c393
when #define USE_MMIXER_LIB was removed.
Thanks to the patches author Doug Lyons.
VBox https://reactos.org/testman/compare.php?ids=77914,77919 LGTM
KVM https://reactos.org/testman/compare.php?ids=77913,77918 LGTM
2021-06-27 23:04:36 +02:00
Hervé Poussineau
979b7d4d8e
[TCPIP] Fix bugcheck when using fragmented datagrams
...
Memory was allocated from paged pool, and freed at DISPATCH_LEVEL,
leading to the following bugcheck:
*** Fatal System Error: 0x000000c2
(0x00000009,0x00000002,0x00000001,0xB7C8A268)
Entered debugger on embedded INT3 at 0x0008:0x8058324B.
kdb:> bt
Eip:
<ntoskrnl.exe:18324c (sdk/lib/rtl/i386/debug_asm.S:56 (RtlpBreakWithStatusInstruction))>
<ntoskrnl.exe:89b21 (ntoskrnl/ke/bug.c:1066 (KeBugCheckWithTf))>
<ntoskrnl.exe:8a08b (ntoskrnl/ke/bug.c:1413 (KeBugCheckEx))>
<ntoskrnl.exe:abb1d (ntoskrnl/mm/ARM3/expool.c:431 (ExFreePoolWithTag))>
<tcpip.sys:13e42 (sdk/lib/drivers/ip/network/receive.c:114 (FreeIPDR))>
<tcpip.sys:14e09 (sdk/include/ddk/wdm.h:11462 (IPDatagramReassemblyTimeout))>
<tcpip.sys:11604 (sdk/lib/drivers/ip/network/ip.c:135 (IPTimeoutDpcFn))>
<ntoskrnl.exe:8b7d0 (ntoskrnl/ke/dpc.c:282 (KiTimerExpiration))>
<ntoskrnl.exe:8c2c8 (ntoskrnl/ke/dpc.c:592 (KiRetireDpcList))>
<ntoskrnl.exe:1420b2 (ntoskrnl/ke/i386/thrdini.c:294 (KiIdleLoop))>
<ntoskrnl.exe:23a54a (ntoskrnl/ke/i386/kiinit.c:687 (KiSystemStartupBootStack))>
2021-06-27 17:45:53 +02:00
Joachim Henze
cb408102cc
[EXT2] Fix filesystem corruption regressions CORE-17572 CORE-17195
...
It regressed when we upgraded Ext2Fsd to version 0.69 from version 0.68
via CORE-13980 in 0.4.8-dev-117-g a1d7e9936d
The fix is a partial revert of that.
Thanks to the patches author Doug Lyons.
VBox https://reactos.org/testman/compare.php?ids=77904,77908 LGTM
KVM https://reactos.org/testman/compare.php?ids=77903,77907 LGTM
2021-06-27 16:21:32 +02:00
Timo Kreuzer
16e988d108
[HAL:APIC] Improve code
...
- Use an enum for the APIC registers
- Add support routine for SMP.
2021-06-26 21:10:43 +02:00
George Bișoc
e8277e51e2
[CSRSS] Fix MSVC AMD64 build
2021-06-25 12:42:02 +02:00
George Bișoc
03636df1e3
[CSRSS] Enable compilation of raise hard error function call code
...
With introduction of 74e527b
, a330b56
and subsequently 2791ecd
ReactOS can now properly set IOPL (I/O privilege level) for user mode trusted processes. With that said, enable the compilation of raise hard error function call code back.
2021-06-25 11:55:35 +02:00
George Bișoc
f144ba8d8b
[CSRSS] Do not give IOPL to the Client/Server native process if ran on a AMD64 system
...
ProcessUserModeIOPL is strictly implemented for 32-bit architecture so it doesn't make any sense for CSRSS to gather user mode I/O privilege when that won't work anyway.
2021-06-25 10:33:28 +02:00
George Bișoc
2791ecd303
[NTOS:PS] Fix several issues within info classes in AMD64 build
...
ProcessUserModeIOPL, ProcessWow64Information and ThreadZeroTlsCell classes fail on AMD64 build because of wrong IQS values assigned to them. Also explicitly tell the compiler that ProcessUserModeIOPL is strictly for x86 as user mode I/O privilege level is 32-bit stuff.
In addition to that, implement IQS_NO_TYPE_LENGTH macro which it'll be used for classes such as ProcessUserModeIOPL where type length is not required and that it should be 0. With that said, we indirectly fix a size length mismatch issue with ProcessUserModeIOPL on 32-bit of ReactOS as well.
2021-06-25 10:33:18 +02:00
Jérôme Gardou
59cddd15e2
[NTOS:MM] Implement MmFlushImageSection(MmFlushForDelete)
...
CORE-17544
2021-06-25 10:28:51 +02:00
Jérôme Gardou
b3e9c89725
[NTOS:MM] Simplify refcounting when adding/deleting a page in a shared segment
...
CORE-17544
2021-06-25 10:28:51 +02:00
Jérôme Gardou
bec42b6530
[NTOS:MM] Do not call ExAllocatePool* with PFN lock acquired
...
Unsurprisingly, it actually might acquire it
2021-06-25 10:28:51 +02:00
He Yang
42e111f26b
[ATL] Close m_hKey in CRegKey destructor and when attaching to a new key ( #3764 )
2021-06-24 23:50:01 +02:00
Jérôme Gardou
aa2697df2d
[NTOSKRNL] Enforce -fno-common on GCC & CLang builds
2021-06-24 18:48:31 +02:00
Jérôme Gardou
c6e9fea844
[NTOSKRNL] Deduplicate some symbols
2021-06-24 18:48:31 +02:00
Jérôme Gardou
1c5ce8d11c
[NTOS:MM] Fix-up call site of traced PFNs when serving a page fault
2021-06-24 18:48:31 +02:00
Jérôme Gardou
146337cc50
[NTOS:MM] Save caller address when tracing PFNs
2021-06-24 18:48:31 +02:00
Jérôme Gardou
aae161d061
[CMD] Do not use an intermediate buffer when reading lines from batch files
...
This is easier on the heap and improves cmd:batch winetest nicely
2021-06-24 15:03:36 +02:00
Jérôme Gardou
5ca83e516c
[CMD] Improve performance a bit
...
Do not use custom alloc/free functions by default.
Do not free resources at process exit.
- You're doing it brick by brick while the OS & CRT do that with a bulldozer better than you do.
2021-06-24 15:03:36 +02:00
Joachim Henze
4130f0b1c5
[WIN32K] CreateDIBPalette addendum to #3758 CORE-17626
...
Fix compilation on older GCC4.7.2 toolchain
to not warn about universal zero initializer.
See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
https://stackoverflow.com/questions/13746033/how-to-repair-warning-missing-braces-around-initializer
2021-06-23 21:37:53 +02:00
Joachim Henze
c596fd3ef6
[WIN32K] CreateDIBPalette SEH Simplification #3758 CORE-17626
...
Enter an SEH2_TRY one time and do all testing within it instead of entering the SEH_TRY multiple times.
The commit is an addendum to 0.4.15-dev-2734-g 514147776a
Thanks to patches author Doug-Lyons
This is 1:1 the final approved content of #3758 , but I committed
by hand and closed the PR to avoid squash+rebase.
2021-06-23 19:59:42 +02:00
Jérôme Gardou
c8ce0cc434
[NTOS:MM] Fix one occurrence of MiDeletePte instead of MiDeletePde
2021-06-22 12:05:20 +02:00
Serge Gautherie
c2e454b439
[NTOS:CC] CcRosFlushVacb(): Fix Iosb annotation
...
Addendum to 2ba1926
.
2021-06-22 10:33:45 +02:00
Serge Gautherie
eab2bb4b20
[NTOS:MM] MmFlushSegment(): Fix Iosb annotation
...
Addendum to 90c6a65
.
2021-06-22 10:33:45 +02:00
Stanislav Motylkov
6d441f7d65
[XBOX][FREELDR] Initialize PCI-AGP bridge BAR values
...
This fixes problem with Xbox GPU not being detected as a children device.
CORE-17600 CORE-16216
2021-06-22 02:42:04 +03:00
Eric Kohl
13073e1acb
[UMPNPMGR] PNP_GetDeviceStatus: Add status checks as documented in MS-PNPR
...
CORE-17527
2021-06-22 00:02:56 +02:00
Eric Kohl
37f38a80de
[SAMSRV] Fix call to SamrCloseHandle in SamrGetDomainPasswordInformation
2021-06-21 21:38:42 +02:00
Eric Kohl
830e15b622
[UMPNPMGR] Add missing parameter checks to PNP_GetDeviceStatus
2021-06-21 21:33:24 +02:00
Jérôme Gardou
41de1bd724
[NTOS:KE] Do not allow waiting at IRQL >= DISPATCH_LEVEL when providing a timeout in KeWaitForMultipleObjects
...
CORE-6473
2021-06-21 11:42:01 +02:00
Jérôme Gardou
27fcfe66a2
[TCPIP][IP] Use an ERESOURCE as mutex for address files & connection end points
...
Spinlocks are not reentrant (and this is done a lot), using them forces us to have
an horrible hack in the kernel, which unschedules threads which are at DISPATCH_LEVEL
thus allowing another thread to take ownership of the spinlock while the unscheduled
thread should already hold it.
CORE-6473
2021-06-21 11:42:01 +02:00
Joachim Henze
10e48faf1d
[USETUP] Update de-DE
...
Translate the Copying-bootloader status bar text
that was added during 0.4.15-dev'ing
2021-06-21 07:37:58 +02:00
Stanislav Motylkov
5697b48583
[NE2000] Add description for Realtek RTL8019AS (emulated by 86Box)
2021-06-20 20:20:16 +03:00
Stanislav Motylkov
6924b8ff39
[NE2000] Combine two INF files into one for ISA and PCI cards
2021-06-20 20:16:33 +03:00
Stanislav Motylkov
7b3691df8a
[INF] machine.inf: Improve Russian translation
2021-06-20 16:58:07 +03:00