From b5b57169c2833b9e70cc4cff7cae127c11f02683 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sat, 13 Dec 2014 09:25:14 +0000 Subject: CopyMemory -> memcpy git-svn-id: http://svn.miranda-ng.org/main/trunk@11363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/variables.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Variables/src/variables.cpp') diff --git a/plugins/Variables/src/variables.cpp b/plugins/Variables/src/variables.cpp index cc1818eca9..a378a87904 100644 --- a/plugins/Variables/src/variables.cpp +++ b/plugins/Variables/src/variables.cpp @@ -332,7 +332,7 @@ static TCHAR* replaceDynVars(TCHAR* szTemplate, FORMATINFO* fi) fi->err = EMEM; return NULL; } - CopyMemory(tcur+1, tcur, strlen(tcur)+1); + memcpy(tcur+1, tcur, strlen(tcur)+1); tcur++; } }*/ @@ -353,7 +353,7 @@ static TCHAR* replaceDynVars(TCHAR* szTemplate, FORMATINFO* fi) scur = string+scurPos; cur = string+curPos; MoveMemory(scur + parsedTokenLen, cur, (_tcslen(cur)+1)*sizeof(TCHAR)); - CopyMemory(scur, parsedToken, parsedTokenLen*sizeof(TCHAR)); + memcpy(scur, parsedToken, parsedTokenLen*sizeof(TCHAR)); { size_t len = _tcslen(string); string = (TCHAR*)mir_realloc(string, (len+1)*sizeof(TCHAR)); @@ -390,12 +390,12 @@ static INT_PTR formatStringService(WPARAM wParam, LPARAM lParam) if (((FORMATINFO *)wParam)->cbSize >= sizeof(FORMATINFO)) { memset(&tempFi, 0, sizeof(FORMATINFO)); - CopyMemory(&tempFi, (FORMATINFO *)wParam, sizeof(FORMATINFO)); + memcpy(&tempFi, (FORMATINFO *)wParam, sizeof(FORMATINFO)); fi = &tempFi; } else if (((FORMATINFO *)wParam)->cbSize == FORMATINFOV2_SIZE) { memset(&tempFi, 0, sizeof(FORMATINFO)); - CopyMemory(&tempFi, (FORMATINFO *)wParam, FORMATINFOV2_SIZE); + memcpy(&tempFi, (FORMATINFO *)wParam, FORMATINFOV2_SIZE); fi = &tempFi; } else { -- cgit v1.2.3