Mercurial > emacs
changeset 63086:96407b684751
(RVA_TO_PTR): Moved here from w32heap.h.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 06 Jun 2005 19:28:02 +0000 |
parents | 42efa87075ef |
children | ba5fe07b9394 |
files | src/unexw32.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/unexw32.c Mon Jun 06 19:27:37 2005 +0000 +++ b/src/unexw32.c Mon Jun 06 19:28:02 2005 +0000 @@ -325,6 +325,9 @@ /* 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)