HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a74089f
)
(RVA_TO_PTR): Moved here from w32heap.h.
author
Eli Zaretskii
<eliz@gnu.org>
Mon, 6 Jun 2005 19:28:02 +0000
(19:28 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Mon, 6 Jun 2005 19:28:02 +0000
(19:28 +0000)
src/unexw32.c
patch
|
blob
|
blame
|
history
diff --git
a/src/unexw32.c
b/src/unexw32.c
index
b183864
..
1b2dbe7
100644
(file)
--- a/
src/unexw32.c
+++ b/
src/unexw32.c
@@
-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)