Commit aec497b0 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msi: Fix some NULL dereferences (Coverity).

parent 891fcb20
......@@ -216,13 +216,13 @@ static UINT ITERATE_RegisterFonts(MSIRECORD *row, LPVOID param)
file = msi_get_loaded_file( package, filename );
if (!file)
{
WARN("unable to find file %s\n", debugstr_w(file->File));
WARN("unable to find file %s\n", debugstr_w(filename));
return ERROR_SUCCESS;
}
comp = msi_get_loaded_component( package, file->Component->Component );
if (!comp)
{
WARN("unable to find component %s\n", debugstr_w(comp->Component));
WARN("unable to find component %s\n", debugstr_w(file->Component->Component));
return ERROR_SUCCESS;
}
comp->Action = msi_get_component_action( package, comp );
......@@ -301,13 +301,13 @@ static UINT ITERATE_UnregisterFonts( MSIRECORD *row, LPVOID param )
file = msi_get_loaded_file( package, filename );
if (!file)
{
WARN("unable to find file %s\n", debugstr_w(file->File));
WARN("unable to find file %s\n", debugstr_w(filename));
return ERROR_SUCCESS;
}
comp = msi_get_loaded_component( package, file->Component->Component );
if (!comp)
{
WARN("unable to find component %s\n", debugstr_w(comp->Component));
WARN("unable to find component %s\n", debugstr_w(file->Component->Component));
return ERROR_SUCCESS;
}
comp->Action = msi_get_component_action( package, comp );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment