Commit b9513f3c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

module_need: handle module loading error

parent 5604a589
......@@ -560,12 +560,15 @@ found_shortcut:
{
module_t *p_new_module =
AllocatePlugin( p_this, p_real->psz_filename );
if( p_new_module )
{
if( p_new_module == NULL )
{ /* Corrupted module */
msg_Err( p_this, "possibly corrupt module cache" );
module_release( p_cand );
continue;
}
CacheMerge( p_this, p_real, p_new_module );
DeleteModule( p_module_bank, p_new_module );
}
}
#endif
p_this->b_force = p_list[i].b_force;
......
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