Skip to content

Commit cd7a808

Browse files
committed
Fix Objective-C run reset struct build
1 parent 37a1e93 commit cd7a808

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/EIDCardFrameFix.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
static const char *kEIDRunResetSupportedUUID = "F4357753-A25F-30EE-BACF-63709F902895";
1616
static const uintptr_t kEIDRunResetGameGlobalOffset = 0xac3b90;
1717

18-
struct EIDRemotePointerVector {
18+
typedef struct {
1919
uintptr_t begin;
2020
uintptr_t end;
2121
uintptr_t capacity;
22-
};
22+
} EIDRemotePointerVector;
2323

2424
static BOOL EIDRunResetRead(vm_address_t address, void *destination, vm_size_t size) {
2525
if (!address || !destination || !size) return NO;
@@ -73,7 +73,7 @@ static uintptr_t EIDCurrentRunIdentity(id probe) {
7373
if (!EIDRunResetRead((vm_address_t)header + kEIDRunResetGameGlobalOffset,
7474
&game, sizeof(game)) || !game) return 0;
7575

76-
EIDRemotePointerVector vector = {};
76+
EIDRemotePointerVector vector = {0};
7777
if (!EIDRunResetRead(game + playerVectorOffset, &vector, sizeof(vector))) return 0;
7878
if (!vector.begin || vector.end <= vector.begin || vector.capacity < vector.end) return 0;
7979
if ((vector.end - vector.begin) % sizeof(uintptr_t) != 0) return 0;

0 commit comments

Comments
 (0)