Fix wrong calling convetion in io_windbg.c (#17570)

This commit is contained in:
GustavoLCR 2020-09-01 19:02:08 -03:00 committed by GitHub
parent d967a68bce
commit 443fc06500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,13 +87,15 @@ static STDMETHODIMP IFace##_QueryInterface_impl ( \
}
#define DECLARE_ADDREF(IFace) \
static ULONG IFace##_AddRef_impl(P##IFace This) { \
static STDMETHODIMP_(ULONG) IFace##_AddRef_impl( \
P##IFace This) { \
P##IFace##_IMPL impl = (P##IFace##_IMPL)This; \
return InterlockedIncrement (&impl->m_ref); \
}
#define DECLARE_RELEASE(IFace) \
static ULONG IFace##_Release_impl(P##IFace This) { \
static STDMETHODIMP_(ULONG) IFace##_Release_impl( \
P##IFace This) { \
P##IFace##_IMPL impl = (P##IFace##_IMPL)This; \
ULONG ret = InterlockedDecrement (&impl->m_ref); \
if (!ret) { \