Fixed regression in VERSION_GetLinkedDllVersion() introduced by

previous change.
This commit is contained in:
Alexandre Julliard 2003-03-30 03:08:13 +00:00
parent 2f5e5f3d29
commit 915a4bacb1
1 changed files with 5 additions and 7 deletions

View File

@ -460,7 +460,7 @@ static DWORD VERSION_GetLinkedDllVersion(void)
{ {
if (LdrQueryProcessModuleInformation(smi, required, NULL) == STATUS_SUCCESS) if (LdrQueryProcessModuleInformation(smi, required, NULL) == STATUS_SUCCESS)
{ {
int k; int i, k;
for (k = 0; k < smi->ModulesCount; k++) for (k = 0; k < smi->ModulesCount; k++)
{ {
nt = RtlImageNtHeader(smi->Modules[k].ImageBaseAddress); nt = RtlImageNtHeader(smi->Modules[k].ImageBaseAddress);
@ -472,12 +472,10 @@ static DWORD VERSION_GetLinkedDllVersion(void)
ophd->MajorOperatingSystemVersion, ophd->MinorOperatingSystemVersion, ophd->MajorOperatingSystemVersion, ophd->MinorOperatingSystemVersion,
ophd->MajorImageVersion, ophd->MinorImageVersion, ophd->MajorImageVersion, ophd->MinorImageVersion,
ophd->MajorSubsystemVersion, ophd->MinorSubsystemVersion); ophd->MajorSubsystemVersion, ophd->MinorSubsystemVersion);
}
/* test if it is an external (native) dll */ /* test if it is an external (native) dll */
if (!(smi->Modules[k].Flags & LDR_WINE_INTERNAL)) if (smi->Modules[k].Flags & LDR_WINE_INTERNAL) continue;
{
int i;
for (i = 0; special_dlls[i]; i++) for (i = 0; special_dlls[i]; i++)
{ {
/* test if it is a special dll */ /* test if it is a special dll */