Remove VirtualAlloc, VirtualFree & ZeroMemory. (PR #884)

. Allocation in Memory.cpp: keep VirtualAlloc of size=64KiB (alignment=64KiB) to ease debugging.
This commit is contained in:
Andrea
2020-12-10 21:08:15 +00:00
committed by GitHub
parent 86851d86e5
commit d2a34e1f91
22 changed files with 117 additions and 155 deletions

View File

@@ -67,7 +67,7 @@ void MemoryTextFile_t::GetLine( const int iLine, char *pLine, const int nMaxLine
GetLinePointers();
}
ZeroMemory( pLine, nMaxLineChars );
memset( pLine, 0, nMaxLineChars );
strncpy( pLine, m_vLines[ iLine ], nMaxLineChars-1 );
}