From 80448624b0d3ad16c7da5b2b9e6aed97e46f333e Mon Sep 17 00:00:00 2001 From: Changhua Date: Sun, 17 Dec 2023 17:35:54 +0800 Subject: [PATCH] Fix localid data type --- WeChatFerry/spy/exec_sql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeChatFerry/spy/exec_sql.cpp b/WeChatFerry/spy/exec_sql.cpp index 14d3275..65e886b 100644 --- a/WeChatFerry/spy/exec_sql.cpp +++ b/WeChatFerry/spy/exec_sql.cpp @@ -186,7 +186,7 @@ int GetLocalIdandDbidx(uint64_t id, uint64_t *localId, uint32_t *dbIdx) continue; } - *localId = strtoul((const char *)(field.content.data()), NULL, 10); + *localId = strtoull((const char *)(field.content.data()), NULL, 10); *dbIdx = GET_DWORD(GET_DWORD(dbAddr + 0x18) + 0x144); return 0;