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:
@ -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");
|
||||
|
Reference in New Issue
Block a user