Commit 8b1709cc authored by Andrew Innes's avatar Andrew Innes
Browse files

(PTR_TO_OFFSET): Cast ptr to unsigned char *.

parent f5d9ebee
......@@ -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))
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