Commit a56e5d17 authored by Andrew Innes's avatar Andrew Innes

(PTR_TO_OFFSET): Cast ptr to unsigned char*.

parent 5205d900
......@@ -256,7 +256,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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment