11 Sep
2025
11 Sep
'25
11:25 p.m.
From: Brendan Shanks <bshanks(a)codeweavers.com> --- dlls/dbghelp/dbghelp_private.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/dbghelp/dbghelp_private.h b/dlls/dbghelp/dbghelp_private.h index 1249d02b666..695d234616c 100644 --- a/dlls/dbghelp/dbghelp_private.h +++ b/dlls/dbghelp/dbghelp_private.h @@ -599,6 +599,9 @@ struct process static inline BOOL read_process_memory(const struct process *process, UINT64 addr, void *buf, size_t size) { + if (addr != (UINT_PTR)addr) + return FALSE; + return ReadProcessMemory(process->handle, (void*)(UINT_PTR)addr, buf, size, NULL); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8962