diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 10:52:12 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 10:52:12 +0000 |
commit | 5a19f89d6c8eb148e6bb7b450f702b666f685ed1 (patch) | |
tree | 2214a02a6785d5f4716ee53d191674746b34790c /plugins/Db3x_mmap/src/dbsettings.cpp | |
parent | 518e10779e770eac62fcedc96e750e538fa395ba (diff) |
MoveMemory -> memmove
git-svn-id: http://svn.miranda-ng.org/main/trunk@11365 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbsettings.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbsettings.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Db3x_mmap/src/dbsettings.cpp b/plugins/Db3x_mmap/src/dbsettings.cpp index 1aff61284b..362aaa82e0 100644 --- a/plugins/Db3x_mmap/src/dbsettings.cpp +++ b/plugins/Db3x_mmap/src/dbsettings.cpp @@ -147,8 +147,8 @@ LBL_Seek: return 2;
case DBVT_BYTE: dbv->bVal = pBlob[1]; break;
- case DBVT_WORD: MoveMemory(&(dbv->wVal), (PWORD)(pBlob + 1), 2); break;
- case DBVT_DWORD: MoveMemory(&(dbv->dVal), (PDWORD)(pBlob + 1), 4); break;
+ case DBVT_WORD: memmove(&(dbv->wVal), (PWORD)(pBlob + 1), 2); break;
+ case DBVT_DWORD: memmove(&(dbv->dVal), (PDWORD)(pBlob + 1), 4); break;
case DBVT_UTF8:
case DBVT_ASCIIZ:
@@ -158,13 +158,13 @@ LBL_Seek: dbv->cchVal--;
if (varLen < dbv->cchVal)
dbv->cchVal = varLen;
- MoveMemory(dbv->pszVal, pBlob + 3, dbv->cchVal); // decode
+ memmove(dbv->pszVal, pBlob + 3, dbv->cchVal); // decode
dbv->pszVal[dbv->cchVal] = 0;
dbv->cchVal = varLen;
}
else {
dbv->pszVal = (char*)mir_alloc(1 + varLen);
- MoveMemory(dbv->pszVal, pBlob + 3, varLen);
+ memmove(dbv->pszVal, pBlob + 3, varLen);
dbv->pszVal[varLen] = 0;
}
break;
@@ -175,11 +175,11 @@ LBL_Seek: if (isStatic) {
if (varLen < dbv->cpbVal)
dbv->cpbVal = varLen;
- MoveMemory(dbv->pbVal, pBlob + 3, dbv->cpbVal);
+ memmove(dbv->pbVal, pBlob + 3, dbv->cpbVal);
}
else {
dbv->pbVal = (BYTE *)mir_alloc(varLen);
- MoveMemory(dbv->pbVal, pBlob + 3, varLen);
+ memmove(dbv->pbVal, pBlob + 3, varLen);
}
dbv->cpbVal = varLen;
break;
@@ -201,13 +201,13 @@ LBL_Seek: dbv->cchVal--;
if (varLen < dbv->cchVal)
dbv->cchVal = varLen;
- MoveMemory(dbv->pszVal, decoded, dbv->cchVal);
+ memmove(dbv->pszVal, decoded, dbv->cchVal);
dbv->pszVal[dbv->cchVal] = 0;
dbv->cchVal = varLen;
}
else {
dbv->pszVal = (char*)mir_alloc(1 + varLen);
- MoveMemory(dbv->pszVal, decoded, varLen);
+ memmove(dbv->pszVal, decoded, varLen);
dbv->pszVal[varLen] = 0;
}
}
|