Removed timestamp

This commit is contained in:
Eduard Urbach 2024-08-19 18:20:52 +02:00
parent 6b48ee0a48
commit 07c7e69078
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -4,7 +4,6 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"io" "io"
"time"
"git.akyoto.dev/cli/q/src/config" "git.akyoto.dev/cli/q/src/config"
"git.akyoto.dev/cli/q/src/dll" "git.akyoto.dev/cli/q/src/dll"
@ -103,7 +102,7 @@ func Write(writer io.Writer, code []byte, data []byte, dlls dll.List) {
Signature: [4]byte{'P', 'E', 0, 0}, Signature: [4]byte{'P', 'E', 0, 0},
Machine: IMAGE_FILE_MACHINE_AMD64, Machine: IMAGE_FILE_MACHINE_AMD64,
NumberOfSections: uint16(NumSections), NumberOfSections: uint16(NumSections),
TimeDateStamp: uint32(time.Now().Unix()), TimeDateStamp: 0,
PointerToSymbolTable: 0, PointerToSymbolTable: 0,
NumberOfSymbols: 0, NumberOfSymbols: 0,
SizeOfOptionalHeader: OptionalHeader64Size, SizeOfOptionalHeader: OptionalHeader64Size,