diff options
author | Eli Zaretskii <[email protected]> | 2005-06-06 19:28:27 +0000 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2005-06-06 19:28:27 +0000 |
commit | 8747ac3f6853164434eb82c8172c7547b4e32be7 (patch) | |
tree | cfee376e347acdb4d0ecb7e65d1c1c9e7d694f78 | |
parent | e9bdb9c9f79bfb31977501ef5aebd53f1505718a (diff) |
(RVA_TO_PTR): New macro.
-rw-r--r-- | src/w32proc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32proc.c b/src/w32proc.c index 9abee2bf0c..48b5e2c14a 100644 --- a/src/w32proc.c +++ b/src/w32proc.c @@ -57,6 +57,11 @@ extern BOOL WINAPI IsValidLocale(LCID, DWORD); #include "syssignal.h" #include "w32term.h" +#define RVA_TO_PTR(var,section,filedata) \ + ((void *)((section)->PointerToRawData \ + + ((DWORD)(var) - (section)->VirtualAddress) \ + + (filedata).file_base)) + /* Control whether spawnve quotes arguments as necessary to ensure correct parsing by child process. Because not all uses of spawnve are careful about constructing argv arrays, we make this behaviour |