Author: pschweitzer
Date: Sun Mar 11 10:58:21 2012
New Revision: 56111
URL:
http://svn.reactos.org/svn/reactos?rev=56111&view=rev
Log:
[RSYM64]
Fix incorrect memset usage
Modified:
trunk/reactos/tools/rsym/rsym64.c
Modified: trunk/reactos/tools/rsym/rsym64.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rsym/rsym64.c?rev=56…
==============================================================================
--- trunk/reactos/tools/rsym/rsym64.c [iso-8859-1] (original)
+++ trunk/reactos/tools/rsym/rsym64.c [iso-8859-1] Sun Mar 11 10:58:21 2012
@@ -557,7 +557,7 @@
/* Allocate .pdata buffer */
pdata = File->pdata.p = malloc(pshp->SizeOfRawData);
- memset(File->pdata.p, pshp->SizeOfRawData, 0);
+ memset(File->pdata.p, 0, pshp->SizeOfRawData,);
/* Init exception data dir */
Dir =
&File->OptionalHeader->DataDirectory[IMAGE_DIRECTORY_ENTRY_EXCEPTION];
@@ -581,7 +581,7 @@
/* Allocate .xdata buffer */
File->xdata.p = malloc(pshx->SizeOfRawData);
- memset(File->xdata.p, pshx->SizeOfRawData, 0);
+ memset(File->xdata.p, 0, pshx->SizeOfRawData);
i = 0;
Offset = File->eh_frame.psh->VirtualAddress;
@@ -890,7 +890,7 @@
}
File.AlignBuf = malloc(File.OptionalHeader->FileAlignment);
- memset(File.AlignBuf, File.OptionalHeader->FileAlignment, 0);
+ memset(File.AlignBuf, 0, File.OptionalHeader->FileAlignment);
GeneratePData(&File);