File fix-hidewineexports.patch of Package wine
hidden_exports_init should be called in build_main_module, not build_ntdll_module.
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index ad0401d..9957990 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -2449,8 +2449,6 @@ static void build_ntdll_module(void)
node_ntdll = wm->ldr.DdagNode;
if (TRACE_ON(relay)) RELAY_SetupDLL( module );
TRACE_(loaddll)( "Loaded %s at %p: builtin\n", debugstr_w(wm->ldr.FullDllName.Buffer), module);
-
- hidden_exports_init( wm->ldr.FullDllName.Buffer );
}
@@ -3003,6 +3001,7 @@ static WINE_MODREF *build_main_module(void)
if (status) goto failed;
RtlFreeUnicodeString( &nt_name );
wm->ldr.LoadCount = -1;
+ hidden_exports_init( wm->ldr.FullDllName.Buffer );
return wm;
failed:
MESSAGE( "wine: failed to create main module for %s, status %lx\n",