Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
Operating System: ReactOS
Platform: x86 Hardware
Description
Created an attachment (id=5671)
See ticket description.
- Add GlobalFlag entry in hivesys_
{arch}
.inf with the default value 0x0.
- Update ntoskrnl/config/cmdata.c to use NtGlobalFlag global variable. This way, when ntoskrnl/ex/init.c:ExpInitializeExecutive loads the System Control Vector, the appropriate flags will be set.
- Move the #if DBG block in ExpInitializeExecutive after NtGlobalFlag is set from CM, so it is applied on checked builds.
Fixes the last kernel32:heap winetest failure on release builds. Note however, that on Windows checked builds, in the registry, GlobalFlag's value is 0x0, but RtlGetNtGlobalFlag returns FLG_ENABLE_CLOSE_EXCEPTIONS | FLG_ENABLE_KDEBUG_SYMBOL_LOAD, just as ReactOS does.
This behaviour was seen on Windows 2003 Server Enterprise ed. with SP1 checked build. kernel32:heap winetest fails with 1 error on such system, so the winetest needs fixing, as this is the MS-behavior.