add IS_64_BIT macro to interface.h

This commit is contained in:
2024-07-25 22:14:06 +01:00
parent 955edb781c
commit 9388844acb
3 changed files with 6 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ static long initialize_dll_interfaces(PT_VMR vmr)
return -100;
}
// use right dll according to O/S type
if (sizeof(void *) == 8)
if (IS_64_BIT)
strncat(dll_fullpath, DLL64_NAME, DLL_FULLPATH_SZ - strlen(DLL64_NAME) - 1);
else
strncat(dll_fullpath, DLL32_NAME, DLL_FULLPATH_SZ - strlen(DLL32_NAME) - 1);