Skip to content

Commit ed860af

Browse files
committed
ARM64 Partial Support
1 parent a323627 commit ed860af

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/jni/ProcessManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bool GetMapsBuffer(int fd, std::string & result)
108108
printf("GetMapsBuffer(%d)\n",fd);
109109
#endif
110110

111-
lseek(fd, 0, SEEK_SET);
111+
lseek64(fd, 0, SEEK_SET);
112112
FILE* tmpf = fdopen(fd, "r");
113113
if(!tmpf)
114114
return false;

src/jni/ProcessManager.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,24 +212,24 @@ template<typename T>
212212
T ProcessManager::ReadProcessMemory(uintptr_t addr)
213213
{
214214
T result;
215-
lseek(memfd, addr, SEEK_SET);
215+
lseek64(memfd, addr, SEEK_SET);
216216

217217
if(!read(memfd, &result, sizeof(result)))
218218
printf("ProcessManager : could not read the memory");
219219

220-
lseek(memfd, 0, SEEK_SET);
220+
lseek64(memfd, 0, SEEK_SET);
221221
return result;
222222
}
223223

224224
template<typename T>
225225
void ProcessManager::WriteProcessMemory(uintptr_t addr, T newValue)
226226
{
227-
lseek(memfd, addr, SEEK_SET);
227+
lseek64(memfd, addr, SEEK_SET);
228228

229229
if(!write(memfd, &newValue, sizeof(T)))
230230
printf("ProcessManager : could not write the memory");
231231

232-
lseek(memfd, 0, SEEK_SET);
232+
lseek64(memfd, 0, SEEK_SET);
233233
}
234234

235235

0 commit comments

Comments
 (0)