mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-14 16:50:58 +00:00
(RVA_TO_PTR): Moved here from w32heap.h.
This commit is contained in:
parent
a74089f7a1
commit
e9bdb9c9f7
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user