mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
fix: bug
This commit is contained in:
1 parent
39753d7784
commit
80e0f43529
2 files changed
+35
-8
No files matched your search
@@ -24,7 +24,10 @@ function makeTempDir(): string {
|
||||
}
|
||||
|
||||
/** 造一个最小的合法 PE:MZ + e_lfanew + PE 签名 + machine */
|
||||
function writeFakePe(machine = 0x8664, size = 4096): string {
|
||||
function writeFakePe(
|
||||
machine = process.arch === 'arm64' ? 0xaa64 : 0x8664,
|
||||
size = 4096
|
||||
): string {
|
||||
const dir = makeTempDir()
|
||||
const file = path.join(dir, 'tm-wcdb-config-helper.exe')
|
||||
const buf = Buffer.alloc(size)
|
||||
|
||||
Reference in new issue
Block a user