[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi] trivial patch for LoadLibrary() call
From: |
Vadim Zeitlin |
Subject: |
[lmi] trivial patch for LoadLibrary() call |
Date: |
Tue, 30 Dec 2008 23:49:02 +0100 |
Hello,
Could you please apply this trivial patch?
--- msw_workarounds.cpp 2008-12-27 02:57:00 +0000
+++ msw_workarounds.cpp 2008-12-30 18:22:22 +0000
@@ -90,7 +90,7 @@
#ifdef LMI_MSW
fenv_initialize();
- if(0 == ::LoadLibrary(dll_name.c_str()))
+ if(0 == ::LoadLibraryA(dll_name.c_str()))
{
std::ostringstream oss;
oss << "Failed to preload '" << dll_name << "'.";
The reason for it is that LoadLibrary() is #define'd as LoadLibraryW() in
Unicode build by <windows.h> while dll_name is always std::string (and not
a std::wstring) and so there is mismatch in parameter types if wx is built
in Unicode, as it is by default in the trunk.
This (and a few other changes which I'll describe in separate messages...)
would allow me to build LMI using wx svn trunk again.
Thanks,
VZ
- [lmi] trivial patch for LoadLibrary() call,
Vadim Zeitlin <=