aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorAndrew Innes <[email protected]>2000-08-22 21:51:15 +0000
committerAndrew Innes <[email protected]>2000-08-22 21:51:15 +0000
commit8b1709cc9146d42cf694d87e4f97d7b9e09ad0ed (patch)
treeafc1a30ba7e8c38e6f341a1082877dddb861e812 /nt
parentf5d9ebeeadc394ca41606a67c23cec123a1bdc27 (diff)
(PTR_TO_OFFSET): Cast ptr to unsigned char *.
Diffstat (limited to 'nt')
-rw-r--r--nt/preprep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nt/preprep.c b/nt/preprep.c
index 4087c512c1..0c10ab98b8 100644
--- a/nt/preprep.c
+++ b/nt/preprep.c
@@ -291,7 +291,7 @@ relocate_offset (DWORD offset,
#define PTR_TO_RVA(ptr) ((DWORD)(ptr) - (DWORD) GetModuleHandle (NULL))
#define PTR_TO_OFFSET(ptr, pfile_data) \
- ((char *)(ptr) - (pfile_data)->file_base)
+ ((unsigned char *)(ptr) - (pfile_data)->file_base)
#define OFFSET_TO_PTR(offset, pfile_data) \
((pfile_data)->file_base + (DWORD)(offset))