diff options
Diffstat (limited to 'plugins/Import/src/utils.cpp')
-rw-r--r-- | plugins/Import/src/utils.cpp | 10 |
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);
|