Commit e9bdb9c9 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(RVA_TO_PTR): Moved here from w32heap.h.

parent a74089f7
......@@ -325,6 +325,9 @@ relocate_offset (DWORD offset,
/* Convert address in executing image to RVA. */
#define PTR_TO_RVA(ptr) ((DWORD)(ptr) - (DWORD) GetModuleHandle (NULL))
#define RVA_TO_PTR(var,section,filedata) \
((void *)(RVA_TO_OFFSET(var,section) + (filedata).file_base))
#define PTR_TO_OFFSET(ptr, pfile_data) \
((unsigned char *)(ptr) - (pfile_data)->file_base)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment