aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins
diff options
context:
space:
mode:
authorCameron Cawley2019-03-31 19:07:40 +0100
committerFilippos Karapetis2019-04-15 08:06:39 +0300
commitbcef809e612177c2bcb7ca3f8682ea96d38c4cdc (patch)
tree14bc067ff02ef2e1aabd19360db67e22deb8704f /backends/plugins
parent82f4ee86a9824a9cdfd5060d7bab23be381a46df (diff)
downloadscummvm-rg350-bcef809e612177c2bcb7ca3f8682ea96d38c4cdc.tar.gz
scummvm-rg350-bcef809e612177c2bcb7ca3f8682ea96d38c4cdc.tar.bz2
scummvm-rg350-bcef809e612177c2bcb7ca3f8682ea96d38c4cdc.zip
WINCE: Fix compilation
Diffstat (limited to 'backends/plugins')
-rw-r--r--backends/plugins/win32/win32-provider.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/backends/plugins/win32/win32-provider.cpp b/backends/plugins/win32/win32-provider.cpp
index ae8a5f0472..c97feb4806 100644
--- a/backends/plugins/win32/win32-provider.cpp
+++ b/backends/plugins/win32/win32-provider.cpp
@@ -36,7 +36,7 @@
class Win32Plugin : public DynamicPlugin {
private:
static const TCHAR* toUnicode(const char *x) {
- #ifndef _WIN32_WCE
+ #ifndef UNICODE
return (const TCHAR *)x;
#else
static TCHAR unicodeString[MAX_PATH];
@@ -50,11 +50,7 @@ protected:
void *_dlHandle;
virtual VoidFunc findSymbol(const char *symbol) {
- #ifndef _WIN32_WCE
- FARPROC func = GetProcAddress((HMODULE)_dlHandle, symbol);
- #else
FARPROC func = GetProcAddress((HMODULE)_dlHandle, toUnicode(symbol));
- #endif
if (!func)
debug("Failed loading symbol '%s' from plugin '%s'", symbol, _filename.c_str());
@@ -67,11 +63,7 @@ public:
bool loadPlugin() {
assert(!_dlHandle);
-#ifndef _WIN32_WCE
- _dlHandle = LoadLibrary(_filename.c_str());
-#else
_dlHandle = LoadLibrary(toUnicode(_filename.c_str()));
-#endif
if (!_dlHandle) {
debug("Failed loading plugin '%s' (error code %d)", _filename.c_str(), (int32) GetLastError());