summaryrefslogtreecommitdiff
path: root/plugins/Import
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:07:01 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:07:01 +0000
commitb2fad485cd5b41744ef0cc4a02722c021afd926c (patch)
treeaa19403cd699066600e8306be8ad33e4a17fba6f /plugins/Import
parentfc62f1f1e1f8af40a1f7efe0ba3afc358fb66ef3 (diff)
ZeroMemory -> memset, few bugs fised
git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import')
-rw-r--r--plugins/Import/src/utils.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Import/src/utils.cpp b/plugins/Import/src/utils.cpp
index 84fe165a26..d833f2cb9e 100644
--- a/plugins/Import/src/utils.cpp
+++ b/plugins/Import/src/utils.cpp
@@ -113,7 +113,7 @@ bool IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO dbei)
if (!(hExistingDbEvent = db_event_first(hContact)))
return FALSE;
- ZeroMemory(&dbeiExisting, sizeof(dbeiExisting));
+ memset(&dbeiExisting, 0, sizeof(dbeiExisting));
dbeiExisting.cbSize = sizeof(dbeiExisting);
db_event_get(hExistingDbEvent, &dbeiExisting);
dwEventTimeStamp = dbeiExisting.timestamp;
@@ -130,7 +130,7 @@ bool IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO dbei)
// check for equal timestamps
if (dbei.timestamp == dwPreviousTimeStamp) {
- ZeroMemory(&dbeiExisting, sizeof(dbeiExisting));
+ memset(&dbeiExisting, 0, sizeof(dbeiExisting));
dbeiExisting.cbSize = sizeof(dbeiExisting);
db_event_get(hPreviousDbEvent, &dbeiExisting);
@@ -140,7 +140,7 @@ bool IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO dbei)
// find event with another timestamp
hExistingDbEvent = db_event_next(hContact, hPreviousDbEvent);
while (hExistingDbEvent != NULL) {
- ZeroMemory(&dbeiExisting, sizeof(dbeiExisting));
+ memset(&dbeiExisting, 0, sizeof(dbeiExisting));
dbeiExisting.cbSize = sizeof(dbeiExisting);
db_event_get(hExistingDbEvent, &dbeiExisting);
@@ -161,7 +161,7 @@ bool IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO dbei)
if (dbei.timestamp <= dwPreviousTimeStamp) {
// look back
while (hExistingDbEvent != NULL) {
- ZeroMemory(&dbeiExisting, sizeof(dbeiExisting));
+ memset(&dbeiExisting, 0, sizeof(dbeiExisting));
dbeiExisting.cbSize = sizeof(dbeiExisting);
db_event_get(hExistingDbEvent, &dbeiExisting);
@@ -187,7 +187,7 @@ bool IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO dbei)
else {
// look forward
while (hExistingDbEvent != NULL) {
- ZeroMemory(&dbeiExisting, sizeof(dbeiExisting));
+ memset(&dbeiExisting, 0, sizeof(dbeiExisting));
dbeiExisting.cbSize = sizeof(dbeiExisting);
db_event_get(hExistingDbEvent, &dbeiExisting);