From 6c2c0d5dd64161a2394138651f0452009ad164be Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 26 Nov 2018 11:23:39 +1030 Subject: [PATCH] [Project64] Make sure closeDll is set before calling it --- Source/Project64-core/Plugins/PluginBase.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Project64-core/Plugins/PluginBase.cpp b/Source/Project64-core/Plugins/PluginBase.cpp index 354334045a..5ed8f19e74 100644 --- a/Source/Project64-core/Plugins/PluginBase.cpp +++ b/Source/Project64-core/Plugins/PluginBase.cpp @@ -231,7 +231,10 @@ void CPlugin::Close(RenderWindow * Render) WriteTrace(PluginTraceType(), TraceDebug, "(%s): Start", PluginType()); RomClose(Render); m_Initialized = false; - CloseDLL(); + if (CloseDLL != NULL) + { + CloseDLL(); + } WriteTrace(PluginTraceType(), TraceDebug, "(%s): Done", PluginType()); }