From 89c3cab45a1cfd8f4ad32a7aad77e166b2eff49d Mon Sep 17 00:00:00 2001
From: Alexander Lantsev <aunsane@gmail.com>
Date: Thu, 3 Dec 2015 19:48:11 +0000
Subject: MirLua: fix plugin uid loading too

git-svn-id: http://svn.miranda-ng.org/main/trunk@15820 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 plugins/MirLua/src/m_core.cpp | 6 +++---
 1 file 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;
-- 
cgit v1.2.3