From 4f795835fc380a439649751a6c6710841df135c9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Jun 2024 13:43:58 +0300 Subject: Utils_GenerateUUID - a helper for UUID generation --- protocols/Facebook/src/main.cpp | 2 -- protocols/Facebook/src/proto.cpp | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'protocols/Facebook/src') diff --git a/protocols/Facebook/src/main.cpp b/protocols/Facebook/src/main.cpp index 9692c7b828..7d87990901 100644 --- a/protocols/Facebook/src/main.cpp +++ b/protocols/Facebook/src/main.cpp @@ -20,8 +20,6 @@ along with this program. If not, see . #include "stdafx.h" -#pragma comment(lib, "Rpcrt4.lib") - CMPlugin g_plugin; bool g_bMessageState; diff --git a/protocols/Facebook/src/proto.cpp b/protocols/Facebook/src/proto.cpp index 19c2f03a30..ef8fdbbaa3 100644 --- a/protocols/Facebook/src/proto.cpp +++ b/protocols/Facebook/src/proto.cpp @@ -57,13 +57,8 @@ FacebookProto::FacebookProto(const char *proto_name, const wchar_t *username) : m_szDeviceID = getMStringA(DBKEY_DEVICE_ID); if (m_szDeviceID.IsEmpty()) { - UUID deviceId; - UuidCreate(&deviceId); - RPC_CSTR szId; - UuidToStringA(&deviceId, &szId); - m_szDeviceID = szId; + m_szDeviceID = Utils_GenerateUUID(); setString(DBKEY_DEVICE_ID, m_szDeviceID); - RpcStringFreeA(&szId); } m_szClientID = getMStringA(DBKEY_CLIENT_ID); -- cgit v1.2.3