diff options
| author | Eli Zaretskii | 2005-06-06 19:28:02 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-06-06 19:28:02 +0000 |
| commit | e9bdb9c9f79bfb31977501ef5aebd53f1505718a (patch) | |
| tree | 4764984c062a16410292bdbed216ef99bc2b4754 /src | |
| parent | a74089f7a13e594c51388f74fc5222d908262c2b (diff) | |
| download | emacs-e9bdb9c9f79bfb31977501ef5aebd53f1505718a.tar.gz emacs-e9bdb9c9f79bfb31977501ef5aebd53f1505718a.zip | |
(RVA_TO_PTR): Moved here from w32heap.h.
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexw32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unexw32.c b/src/unexw32.c index b1838644965..1b2dbe74c31 100644 --- a/src/unexw32.c +++ b/src/unexw32.c | |||
| @@ -325,6 +325,9 @@ relocate_offset (DWORD offset, | |||
| 325 | /* Convert address in executing image to RVA. */ | 325 | /* Convert address in executing image to RVA. */ |
| 326 | #define PTR_TO_RVA(ptr) ((DWORD)(ptr) - (DWORD) GetModuleHandle (NULL)) | 326 | #define PTR_TO_RVA(ptr) ((DWORD)(ptr) - (DWORD) GetModuleHandle (NULL)) |
| 327 | 327 | ||
| 328 | #define RVA_TO_PTR(var,section,filedata) \ | ||
| 329 | ((void *)(RVA_TO_OFFSET(var,section) + (filedata).file_base)) | ||
| 330 | |||
| 328 | #define PTR_TO_OFFSET(ptr, pfile_data) \ | 331 | #define PTR_TO_OFFSET(ptr, pfile_data) \ |
| 329 | ((unsigned char *)(ptr) - (pfile_data)->file_base) | 332 | ((unsigned char *)(ptr) - (pfile_data)->file_base) |
| 330 | 333 | ||