src: rework mem_clear()

This commit is contained in:
Markus F.X.J. Oberhumer
2023-06-09 18:20:06 +02:00
parent 19e84fea62
commit 75e87a58da
15 changed files with 54 additions and 56 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ int PackExe::fillExeHeader(struct exe_header_t *eh) const {
if (ih.relocs == 0)
flag |= NORELOC;
memset(&oh, 0, sizeof(oh));
mem_clear(&oh);
oh.ident = 'M' + 'Z' * 256;
oh.headsize16 = 2;
@@ -656,7 +656,7 @@ void PackExe::unpack(OutputFile *fo) {
}
// fill new exe header
memset(&oh, 0, sizeof(oh));
mem_clear(&oh);
oh.ident = 'M' + 'Z' * 256;
if (relocnum) {