summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgutils.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-13 09:25:14 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-13 09:25:14 +0000
commitb5b57169c2833b9e70cc4cff7cae127c11f02683 (patch)
tree7785b60d2dbd94e4618f527716d8fe224cec15c2 /plugins/TabSRMM/src/msgdlgutils.cpp
parenta85d3756ce4eb0257025b005deb795ba05fd4fda (diff)
CopyMemory -> memcpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@11363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index 9712a49f0c..1b3f647bb4 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -807,14 +807,14 @@ static DWORD CALLBACK Message_StreamCallback(DWORD_PTR dwCookie, LPBYTE pbBuff,
if (*ppText == NULL) {
*ppText = (char *)mir_alloc(cb + 2);
- CopyMemory(*ppText, pbBuff, cb);
+ memcpy(*ppText, pbBuff, cb);
*pcb = cb;
dwRead = cb;
*(*ppText + cb) = '\0';
}
else {
char *p = (char *)mir_realloc(*ppText, dwRead + cb + 2);
- CopyMemory(p + dwRead, pbBuff, cb);
+ memcpy(p + dwRead, pbBuff, cb);
*ppText = p;
*pcb = cb;
dwRead += cb;
@@ -1076,7 +1076,7 @@ BOOL TSAPI DoRtfToTags(TCHAR *pszText, const TWindowData *dat)
if (InsertThis[0] || iRemoveChars) {
size_t cbLen = _tcslen(InsertThis);
MoveMemory(p1 + cbLen, p1 + iRemoveChars, (mir_tstrlen(p1) - iRemoveChars + 1) * sizeof(TCHAR));
- CopyMemory(p1, InsertThis, cbLen * sizeof(TCHAR));
+ memcpy(p1, InsertThis, cbLen * sizeof(TCHAR));
p1 += cbLen;
}
else p1++;
@@ -1712,11 +1712,11 @@ void TSAPI LoadOverrideTheme(TContainerData *pContainer)
}
if (pContainer->ltr_templates == NULL) {
pContainer->ltr_templates = (TTemplateSet *)mir_alloc(sizeof(TTemplateSet));
- CopyMemory(pContainer->ltr_templates, &LTR_Active, sizeof(TTemplateSet));
+ memcpy(pContainer->ltr_templates, &LTR_Active, sizeof(TTemplateSet));
}
if (pContainer->rtl_templates == NULL) {
pContainer->rtl_templates = (TTemplateSet *)mir_alloc(sizeof(TTemplateSet));
- CopyMemory(pContainer->rtl_templates, &RTL_Active, sizeof(TTemplateSet));
+ memcpy(pContainer->rtl_templates, &RTL_Active, sizeof(TTemplateSet));
}
pContainer->theme.logFonts = (LOGFONTA *)mir_alloc(sizeof(LOGFONTA) * (MSGDLGFONTCOUNT + 2));