Made plugin loading work properly on Windows.

This commit is contained in:
Jan Vidar Krey
2011-09-08 01:00:32 +02:00
parent 0d8283930f
commit 39572c3684
4 changed files with 10 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ struct uhub_plugin* plugin_open(const char* filename)
#ifdef HAVE_DLOPEN
LOG_ERROR("Unable to open plugin %s: %s", filename, dlerror());
#else
LOG_ERROR("Unable to open plugin %s: %s", filename, GetLastError());
LOG_ERROR("Unable to open plugin %s: %d", filename, GetLastError());
#endif
hub_free(plugin);
return 0;