|
From: Lasse Kärkkäi. <tr...@us...> - 2009-06-28 21:56:11
|
Module: performous
Branch: master
Commit: 05936993f34c26ebcc2184121346359f828fa4b6
Author: Lasse Karkkainen <tro...@tr...>
Date: Sun Jun 28 16:35:08 2009 -0500
Now it actually compiles :)
---
libs/plugin++/src/dll-windows.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/plugin++/src/dll-windows.cpp b/libs/plugin++/src/dll-windows.cpp
index 8a10412..ecbe37b 100644
--- a/libs/plugin++/src/dll-windows.cpp
+++ b/libs/plugin++/src/dll-windows.cpp
@@ -5,11 +5,11 @@
namespace plugin {
dll::dll(std::string const& filename): lib(LoadLibrary(filename.c_str())) {
- if (!lib) throw std::runtime_error(dlerror());
+ if (!lib) throw std::runtime_error("Unable to open " + filename);
}
dll::~dll() {
- FreeLibrary(static_cast<HINSTANCE*>(lib));
+ FreeLibrary(static_cast<HINSTANCE>(lib));
}
}
|