[Project64] Make sure closeDll is set before calling it

This commit is contained in:
zilmar 2018-11-26 11:23:39 +10:30
parent 529b162656
commit 6c2c0d5dd6
1 changed files with 4 additions and 1 deletions

View File

@ -231,7 +231,10 @@ void CPlugin::Close(RenderWindow * Render)
WriteTrace(PluginTraceType(), TraceDebug, "(%s): Start", PluginType()); WriteTrace(PluginTraceType(), TraceDebug, "(%s): Start", PluginType());
RomClose(Render); RomClose(Render);
m_Initialized = false; m_Initialized = false;
if (CloseDLL != NULL)
{
CloseDLL(); CloseDLL();
}
WriteTrace(PluginTraceType(), TraceDebug, "(%s): Done", PluginType()); WriteTrace(PluginTraceType(), TraceDebug, "(%s): Done", PluginType());
} }