diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-08 22:10:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-08 22:10:14 +0000 |
commit | bb952e431866d131bae95c08e579ec8a00f00343 (patch) | |
tree | 60881668cf328b50906346c5f66ce47da2d9ad88 /plugins/New_GPG | |
parent | c181af64bab27eb50e684c64c0a3caa49f8bbe39 (diff) |
core protocol helpers for creating protocol evengs, services & threads
git-svn-id: http://svn.miranda-ng.org/main/trunk@5286 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG')
-rw-r--r-- | plugins/New_GPG/src/utilities.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/New_GPG/src/utilities.h b/plugins/New_GPG/src/utilities.h index eaa7ef71b5..ef3fbced23 100644 --- a/plugins/New_GPG/src/utilities.h +++ b/plugins/New_GPG/src/utilities.h @@ -46,12 +46,12 @@ public: timestamp = time(0);
szModule = 0;
cbSize = 0;
- cbBlob = strlen(msg)+1;
+ cbBlob = DWORD(strlen(msg)+1);
pBlob = (PBYTE)msg;
}
db_event(char* msg, DWORD time)
{
- cbBlob = strlen(msg)+1;
+ cbBlob = DWORD(strlen(msg)+1);
pBlob = (PBYTE)msg;
eventType = EVENTTYPE_MESSAGE;
flags = 0;
@@ -61,7 +61,7 @@ public: }
db_event(char* msg, DWORD time, int type)
{
- cbBlob = strlen(msg)+1;
+ cbBlob = DWORD(strlen(msg)+1);
pBlob = (PBYTE)msg;
if(type)
eventType = type;
@@ -74,7 +74,7 @@ public: }
db_event(char* msg, int type)
{
- cbBlob = strlen(msg)+1;
+ cbBlob = DWORD(strlen(msg)+1);
pBlob = (PBYTE)msg;
flags = 0;
if(type)
@@ -87,7 +87,7 @@ public: }
db_event(char* msg, DWORD time, int type, DWORD _flags)
{
- cbBlob = strlen(msg)+1;
+ cbBlob = DWORD(strlen(msg)+1);
pBlob = (PBYTE)msg;
if(type)
eventType = type;
|