summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_row.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/Clist_modern/src/modern_row.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/Clist_modern/src/modern_row.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_row.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_row.cpp b/plugins/Clist_modern/src/modern_row.cpp
index a6bac28ed0..cbcb0265ef 100644
--- a/plugins/Clist_modern/src/modern_row.cpp
+++ b/plugins/Clist_modern/src/modern_row.cpp
@@ -79,7 +79,7 @@ ROWCELL *cppInitModernRow(ROWCELL ** tabAccess)
{
fsize = _filelength(_fileno(hFile));
tmplbuf = (char*)malloc(fsize+1);
- ZeroMemory(tmplbuf, fsize+1);
+ memset(tmplbuf, 0, (fsize + 1));
for (i=0; i < fsize; i++) tmplbuf[i] = getc(hFile);
tmplbuf[i] = 0;
@@ -126,7 +126,7 @@ void cppCalculateRowItemsPos(ROWCELL *RowRoot, int width)
const ROWCELL * rowAddCell(ROWCELL* &link, int cont)
{
link = (ROWCELL*)malloc(sizeof(ROWCELL));
- ZeroMemory(link, sizeof(ROWCELL));
+ memset(link, 0, sizeof(ROWCELL));
link->cont = cont;
return link;
}
@@ -165,7 +165,7 @@ char * rowParserGetNextWord(char *tbuf, int &hbuf)
int j = -1;
- ZeroMemory(buf, 256);
+ memset(buf, 0, sizeof(buf));
while(tbuf[hbuf] != 0)
{