Skip to content

Commit 5620468

Browse files
authored
Update dump.swift
1 parent ceb8ac9 commit 5620468

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appdecrypt/dump.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ class Dump {
9191
if base == MAP_FAILED {
9292
return false
9393
}
94-
let error = mremap_encrypted(base!, Int(info.cryptsize), info.cryptid,UInt32(CPU_TYPE_ARM64),UInt32(CPU_SUBTYPE_ARM64_ALL))
94+
let error = mremap_encrypted(base!, Int(info.cryptsize), info.cryptid, UInt32(CPU_TYPE_ARM64), UInt32(CPU_SUBTYPE_ARM64_ALL))
9595
if error != 0 {
96-
munmap(base!, Int(info.cryptsize))
96+
munmap(base, Int(info.cryptsize))
9797
return false
9898
}
99-
memcpy(dupe+UnsafeMutableRawPointer.Stride(info.cryptoff), base!, Int(info.cryptsize))
99+
memcpy(dupe+UnsafeMutableRawPointer.Stride(info.cryptoff), base, Int(info.cryptsize))
100100
munmap(base, Int(info.cryptsize))
101101

102102
return true

0 commit comments

Comments
 (0)