From 7955690ad7110685ffdae9141586ab2e4f1b8904 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 3 Jul 2026 11:30:01 +0300 Subject: [PATCH] [NTOS:EX] Create a stub for SystemModuleInformationEx sysinfo class The stub returns STATUS_INVALID_INFO_CLASS rather than STATUS_NOT_IMPLEMENTED. This is a temporary measure to indicate to ntdll_winetest that this system information class is not implemented and prevent the test from crashing. --- ntoskrnl/ex/sysinfo.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ntoskrnl/ex/sysinfo.c b/ntoskrnl/ex/sysinfo.c index 9b8b5a13cdc..2678e2dbc0b 100644 --- a/ntoskrnl/ex/sysinfo.c +++ b/ntoskrnl/ex/sysinfo.c @@ -2884,6 +2884,13 @@ QSI_DEF(SystemFirmwareTableInformation) return Status; } +/* Class 77 - Extended module information */ +QSI_DEF(SystemModuleInformationEx) +{ + /* For now return STATUS_INVALID_INFO_CLASS to avoid crashing in wine tests */ + return STATUS_INVALID_INFO_CLASS; +} + /* Class 105 - Processor Brand String */ QSI_DEF(SystemProcessorBrandString) { @@ -3014,6 +3021,7 @@ CallQS[] = SI_QX(SystemFirmwareTableInformation), // Vista and later + SI_QX(SystemModuleInformationEx), SI_QX(SystemProcessorBrandString), };