I am trying to migrate a win32 Driver to a amd64 Driver.
Now I have got a Problem:
VideoDataBuf.hpp(70) : error C2220: warning treated as error - no object
file generated
VideoDataBuf.hpp(70) : warning C4311: 'type cast' : pointer truncation from
'PVOID' to 'long'
VideoDataBuf.hpp(70) : error C4312: 'type cast' : conversion from 'LONG' to
'void *' of greater size
The Code:
PVOID GetBufAddr(LONG lOffset = 0 ) const { return PVOID(lOffset +
LONG(GetSrb()->CommandData.DataBufferAry->Data)); }
How Should I convert this to make it amd64 compliant?