diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-12-03 19:48:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-12-03 19:48:11 +0000 |
commit | 89c3cab45a1cfd8f4ad32a7aad77e166b2eff49d (patch) | |
tree | fe7c8459463fff8f06d94a571bc53581aa0468fb /plugins | |
parent | 294826733381a5123401b656c315f5626bdfbed0 (diff) |
MirLua: fix plugin uid loading too
git-svn-id: http://svn.miranda-ng.org/main/trunk@15820 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/MirLua/src/m_core.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp index ee611886a2..7498e84ba4 100644 --- a/plugins/MirLua/src/m_core.cpp +++ b/plugins/MirLua/src/m_core.cpp @@ -198,9 +198,9 @@ static int lua_IsPluginLoaded(lua_State *L) const char *value = lua_tostring(L, 1);
MUUID uuid = { 0 };
- int res = CLSIDFromString((LPCOLESTR)ptrT(mir_utf8decodeT(value)), (LPCLSID)&uuid) == NOERROR;
- if (res == TRUE)
- res = ::IsPluginLoaded(uuid);
+ bool res = UuidFromStringA((RPC_CSTR)value, (UUID*)&uuid) == RPC_S_OK;
+ if (res)
+ res = IsPluginLoaded(uuid) > 0;
lua_pushboolean(L, res);
return 1;
|