Permalink
Browse files

[WIN32] fixed: obey the return codes.

  • Loading branch information...
1 parent d32d809 commit 0f01b65a5a32ba0d592c085883008789ed146edd @wsoltys wsoltys committed Jul 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/visualizations/Milkdrop/MilkdropXBMC.cpp
@@ -93,7 +93,8 @@ extern "C" ADDON_STATUS ADDON_Create(void* hdl, void* props)
_mkdir(visprops->profile);
Preinit();
- g_plugin->PluginInitialize((LPDIRECT3DDEVICE9)visprops->device, visprops->x, visprops->y, visprops->width, visprops->height, visprops->pixelRatio);
+ if(!g_plugin || !g_plugin->PluginInitialize((LPDIRECT3DDEVICE9)visprops->device, visprops->x, visprops->y, visprops->width, visprops->height, visprops->pixelRatio))
+ return ADDON_STATUS_UNKNOWN;
return ADDON_STATUS_NEED_SAVEDSETTINGS; // We need some settings to be saved later before we quit this plugin
}

0 comments on commit 0f01b65

Please sign in to comment.