Index: src/plugin/Plugin.cpp |
=================================================================== |
--- a/src/plugin/Plugin.cpp |
+++ b/src/plugin/Plugin.cpp |
@@ -13,6 +13,7 @@ |
#include "PluginSettings.h" |
#include "PluginMimeFilterClient.h" |
#include "Msiquery.h" |
+#include "../shared/Utils.h" |
#ifdef SUPPORT_FILTER |
#include "PluginFilter.h" |
@@ -44,6 +45,17 @@ |
return FALSE; |
} |
+ /* |
+ * Do a quick validation of the installation. |
+ */ |
+ if ( ! Location::all_known() ){ |
+ return FALSE; |
+ /* |
+ * Future: Write an event to the Windows log file about failure to load. |
+ */ |
+ } |
+ |
+ |
_Module.Init(ObjectMap, _Module.GetModuleInstance(), &LIBID_PluginLib); |
break; |