[NTOS:CM] Initialize the alternative system architecture field on PC-98 builds (#5136)

This is needed by some 3rd party drivers.
CORE-17977
This commit is contained in:
Dmitry Borisov 2023-05-05 22:04:35 +06:00 committed by GitHub
parent f18111b641
commit 8df1b53508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -333,6 +333,11 @@ CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
ULONG Disposition;
UNICODE_STRING KeyName;
/* Set the alternative system architecture information */
#if defined(SARCH_PC98)
SharedUserData->AlternativeArchitecture = NEC98x86;
#endif
/* Setup the key name */
RtlInitUnicodeString(&KeyName,
L"\\Registry\\Machine\\Hardware\\DeviceMap");