summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/utils.cpp')
-rw-r--r--protocols/WhatsApp/src/utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp
index 0aa95f1a16..0155ba2206 100644
--- a/protocols/WhatsApp/src/utils.cpp
+++ b/protocols/WhatsApp/src/utils.cpp
@@ -1,5 +1,10 @@
#include "common.h"
+LONG WhatsAppProto::GetSerial(void)
+{
+ return ::InterlockedIncrement(&m_serial);
+}
+
std::string getLastErrorMsg()
{
// Retrieve the system error message for the last-error code