summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/MirLua/src/m_core.cpp6
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;