mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
[DDK] Hack the IDmaChannel::PhysicalAddress ABI
This commit is contained in:
parent
3d9ef5c7e7
commit
0944f808f8
1 changed files with 10 additions and 0 deletions
|
@ -704,6 +704,16 @@ typedef IUnregisterPhysicalConnection *PUNREGISTERPHYSICALCONNECTION;
|
|||
IDmaChannel Interface
|
||||
*/
|
||||
|
||||
/* C++ ABI HACK: IDmaChannel::PhysicalAddress */
|
||||
#if defined(__cplusplus) && !defined(_MSC_VER)
|
||||
#define DEFINE_ABSTRACT_DMACHANNEL_PhysicalAddress \
|
||||
STDMETHOD_(PHYSICAL_ADDRESS*, PhysicalAddress)( THIS_ PHYSICAL_ADDRESS* pRet ) PURE; \
|
||||
PHYSICAL_ADDRESS PhysicalAddress() { PHYSICAL_ADDRESS tmp; PhysicalAddress(&tmp); return tmp; }
|
||||
#else
|
||||
#define DEFINE_ABSTRACT_DMACHANNEL_PhysicalAddress \
|
||||
STDMETHOD_(PHYSICAL_ADDRESS, PhysicalAddress)( THIS ) PURE
|
||||
#endif
|
||||
|
||||
#define DEFINE_ABSTRACT_DMACHANNEL() \
|
||||
STDMETHOD_(NTSTATUS, AllocateBuffer)( THIS_ \
|
||||
IN ULONG BufferSize, \
|
||||
|
|
Loading…
Reference in a new issue