From 915a4bacb13ddc05f4a34ef9d5598199cc4b468c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 30 Mar 2003 03:08:13 +0000 Subject: [PATCH] Fixed regression in VERSION_GetLinkedDllVersion() introduced by previous change. --- misc/version.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/misc/version.c b/misc/version.c index 75e91d0068a..318e831f17b 100644 --- a/misc/version.c +++ b/misc/version.c @@ -460,24 +460,22 @@ static DWORD VERSION_GetLinkedDllVersion(void) { if (LdrQueryProcessModuleInformation(smi, required, NULL) == STATUS_SUCCESS) { - int k; + int i, k; for (k = 0; k < smi->ModulesCount; k++) { nt = RtlImageNtHeader(smi->Modules[k].ImageBaseAddress); ophd = &nt->OptionalHeader; - + TRACE("%s: %02x.%02x/%02x.%02x/%02x.%02x/%02x.%02x\n", &smi->Modules[k].Name[smi->Modules[k].NameOffset], ophd->MajorLinkerVersion, ophd->MinorLinkerVersion, ophd->MajorOperatingSystemVersion, ophd->MinorOperatingSystemVersion, ophd->MajorImageVersion, ophd->MinorImageVersion, ophd->MajorSubsystemVersion, ophd->MinorSubsystemVersion); - } - /* test if it is an external (native) dll */ - if (!(smi->Modules[k].Flags & LDR_WINE_INTERNAL)) - { - int i; + /* test if it is an external (native) dll */ + if (smi->Modules[k].Flags & LDR_WINE_INTERNAL) continue; + for (i = 0; special_dlls[i]; i++) { /* test if it is a special dll */