summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_core.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-10-28 21:31:28 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-10-28 21:31:28 +0000
commite024a13a4d7b35e9065bdf0cde5c3770bbe43ee0 (patch)
tree8a755ac04ddd99a162e92f9feb6c3a2b7e131156 /plugins/MirLua/src/m_core.cpp
parent679b23b4d1c5b2d935085b199d9327bec8477378 (diff)
MirLua: removed own guid parser
git-svn-id: http://svn.miranda-ng.org/main/trunk@15642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r--plugins/MirLua/src/m_core.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp
index 228a0d6f38..a9a6bcf280 100644
--- a/plugins/MirLua/src/m_core.cpp
+++ b/plugins/MirLua/src/m_core.cpp
@@ -182,8 +182,7 @@ static int lua_IsPluginLoaded(lua_State *L)
const char *value = lua_tostring(L, 1);
MUUID uuid = { 0 };
- int res = sscanf_s(value, "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX}",
- &uuid.a, &uuid.b, &uuid.c, &uuid.d[0], &uuid.d[1], &uuid.d[2], &uuid.d[3], &uuid.d[4], &uuid.d[5], &uuid.d[6], &uuid.d[7]) == 11;
+ int res = CLSIDFromString((LPCOLESTR)ptrT(mir_utf8decodeT(value)), (LPCLSID)&uuid) == NOERROR;
if (res == TRUE)
res = ::IsPluginLoaded(uuid);
lua_pushboolean(L, res);