Fix uninitialized address freeing in case of error in MupGetProviderInformation(), InitializeProvider()
CID
1322227
CID
1322240
svn path=/trunk/; revision=68990
Status = ZwQueryValueKey(KeyHandle, &Value, KeyValueFullInformation, Info, ResultLength, &ResultLength);
}
+ else
+ {
+ Info = NULL;
+ }
ZwClose(KeyHandle);
*/
if (NT_SUCCESS(Status))
{
+ ASSERT(Info != NULL);
AddUnregisteredProvider((PWSTR)((ULONG_PTR)Info + Info->DataOffset), ProviderOrder);
}
Status = ZwQueryValueKey(KeyHandle, &ProviderOrder, KeyValueFullInformation, Info, ResultLength, &ResultLength);
}
+ else
+ {
+ Info = NULL;
+ }
ZwClose(KeyHandle);
if (NT_SUCCESS(Status))
{
+ ASSERT(Info != NULL);
+
Providers = (PWSTR)((ULONG_PTR)Info + Info->DataOffset);
End = FALSE;
ProviderCount = 0;