2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Replace MemZero with memset.

This commit is contained in:
Darryl Pogue
2012-01-21 15:53:29 -08:00
committed by Adam Johnson
parent 7d7d7d273f
commit 72fdf8de32
8 changed files with 16 additions and 28 deletions

View File

@ -215,7 +215,7 @@ void CFile::Read (
// Handle errors
if (bytesRead != bytes)
MemZero((uint8_t *)buffer + bytesRead, bytes - bytesRead);
memset((uint8_t *)buffer + bytesRead, 0, bytes - bytesRead);
if ( (!result && (GetLastError() != ERROR_IO_PENDING)) ||
(bytesRead != bytes) )
LogMsg(kLogFatal, "failed: ReadFile");