summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
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/UserInfoEx/src/ex_import/classExImContactBase.cpp
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/UserInfoEx/src/ex_import/classExImContactBase.cpp')
-rw-r--r--plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp b/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
index bc44363ab4..5d34c90513 100644
--- a/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
+++ b/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
@@ -38,7 +38,7 @@ CExImContactBase::CExImContactBase()
_pszAMPro = NULL;
_pszUIDKey = NULL;
_dbvUIDHash = NULL;
- ZeroMemory(&_dbvUID, sizeof(DBVARIANT));
+ memset(&_dbvUID, 0, sizeof(DBVARIANT));
_hContact = INVALID_CONTACT_ID;
_isNewContact = FALSE;
}
@@ -60,7 +60,7 @@ CExImContactBase::~CExImContactBase()
MIR_FREE(_pszAMPro);
MIR_FREE(_pszUIDKey);
db_free(&_dbvUID);
- ZeroMemory(&_dbvUID, sizeof(DBVARIANT));
+ memset(&_dbvUID, 0, sizeof(DBVARIANT));
}
/**
@@ -88,7 +88,7 @@ BYTE CExImContactBase::fromDB(MCONTACT hContact)
MIR_FREE(_pszGroup);
MIR_FREE(_pszUIDKey);
db_free(&_dbvUID);
- ZeroMemory(&_dbvUID, sizeof(DBVARIANT));
+ memset(&_dbvUID, 0, sizeof(DBVARIANT));
// OWNER
if (!_hContact) return TRUE;
@@ -171,7 +171,7 @@ BYTE CExImContactBase::fromIni(LPSTR& row)
MIR_FREE(_pszGroup);
MIR_FREE(_pszUIDKey);
db_free(&_dbvUID);
- ZeroMemory(&_dbvUID, sizeof(DBVARIANT));
+ memset(&_dbvUID, 0, sizeof(DBVARIANT));
_dbvUIDHash = 0;
// read uid value
@@ -303,7 +303,7 @@ void CExImContactBase::toIni(FILE* file, int modCount)
// Proto loadet - GetContactName(hContact,pszProto,0)
LPSTR pszCI = NULL;
CONTACTINFO ci;
- ZeroMemory(&ci, sizeof(ci));
+ memset(&ci, 0, sizeof(ci));
ci.cbSize = sizeof(ci);
ci.hContact = _hContact;
@@ -438,7 +438,7 @@ LPSTR CExImContactBase::uid2String(BYTE bPrependType)
r = (LPSTR)mir_alloc((baselen + 8));
if (r == NULL)
return NULL;
- ZeroMemory((r + baselen), 8);
+ memset((r + baselen), 0, 8);
ptr = r;
if (bPrependType) { // Allways true.
ptr[0] = 'n';
@@ -455,7 +455,7 @@ LPSTR CExImContactBase::uid2String(BYTE bPrependType)
r = (LPSTR)mir_alloc(baselen);
if (r == NULL)
return NULL;
- ZeroMemory(r, baselen);
+ memset(r, 0, baselen);
ptr = r;
if (bPrependType) { // XXX dead code.
ptr[0] = 'n';