mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 02:52:30 +02:00
Fix a segmentation fault when attempting to load an invalid plugin.
Removed an erroneous fprintf. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5828 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2ed8a4331e
commit
e34a8baa82
@ -85,8 +85,6 @@ int DynamicLibrary::Load(const char* filename)
|
||||
DEBUG_LOG(COMMON, "DL: LoadLibrary: %s(%p)", filename, library);
|
||||
|
||||
if (!library) {
|
||||
fprintf(stderr, "DL: Error loading DLL %s: %s", filename,
|
||||
DllGetLastError());
|
||||
ERROR_LOG(COMMON, "DL: Error loading DLL %s: %s", filename,
|
||||
DllGetLastError());
|
||||
return 0;
|
||||
|
@ -420,13 +420,16 @@ void CPluginManager::OpenConfig(void* _Parent, const char *_rFilename, PLUGIN_TY
|
||||
switch(Type)
|
||||
{
|
||||
case PLUGIN_TYPE_VIDEO:
|
||||
GetVideo()->Config((HWND)_Parent);
|
||||
if (GetVideo() != NULL)
|
||||
GetVideo()->Config((HWND)_Parent);
|
||||
break;
|
||||
case PLUGIN_TYPE_DSP:
|
||||
GetDSP()->Config((HWND)_Parent);
|
||||
if (GetDSP() != NULL)
|
||||
GetDSP()->Config((HWND)_Parent);
|
||||
break;
|
||||
case PLUGIN_TYPE_WIIMOTE:
|
||||
GetWiimote()->Config((HWND)_Parent);
|
||||
if (GetWiimote() != NULL)
|
||||
GetWiimote()->Config((HWND)_Parent);
|
||||
break;
|
||||
default:
|
||||
PanicAlert("Type %d config not supported in plugin %s", Type, _rFilename);
|
||||
|
Loading…
Reference in New Issue
Block a user