Commit d0f10ac2 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Remove references to ICOM_THIS and WINE_UNUSED as they don't exist on

Windows. Define COBJMACROS so we get the IRecordInfo_* macros.
parent 614e4e4a
......@@ -26,6 +26,7 @@
#include <float.h>
#include <time.h>
#define COBJMACROS
#include "wine/test.h"
#include "windef.h"
#include "winbase.h"
......@@ -94,28 +95,28 @@ static IRecordInfoImpl *IRecordInfoImpl_Construct()
static ULONG CALLBACK IRecordInfoImpl_AddRef(IRecordInfo *iface)
{
ICOM_THIS(IRecordInfoImpl, iface);
IRecordInfoImpl* This=(IRecordInfoImpl*)iface;
return ++This->ref;
}
static ULONG CALLBACK IRecordInfoImpl_Release(IRecordInfo *iface)
{
ICOM_THIS(IRecordInfoImpl, iface);
IRecordInfoImpl* This=(IRecordInfoImpl*)iface;
return --This->ref;
}
static BOOL fail_GetSize; /* Whether to fail the GetSize call */
static HRESULT CALLBACK IRecordInfoImpl_RecordClear(IRecordInfo *iface, PVOID pvExisting WINE_UNUSED)
static HRESULT CALLBACK IRecordInfoImpl_RecordClear(IRecordInfo *iface, PVOID pvExisting)
{
ICOM_THIS(IRecordInfoImpl, iface);
IRecordInfoImpl* This=(IRecordInfoImpl*)iface;
This->clearCalled++;
return S_OK;
}
static HRESULT CALLBACK IRecordInfoImpl_GetSize(IRecordInfo *iface, ULONG* size)
{
ICOM_THIS(IRecordInfoImpl, iface);
IRecordInfoImpl* This=(IRecordInfoImpl*)iface;
This->sizeCalled++;
*size = 17;
if (fail_GetSize)
......@@ -124,7 +125,7 @@ static HRESULT CALLBACK IRecordInfoImpl_GetSize(IRecordInfo *iface, ULONG* size)
return S_OK;
}
static HRESULT CALLBACK IRecordInfoImpl_Dummy(IRecordInfo *iface WINE_UNUSED)
static HRESULT CALLBACK IRecordInfoImpl_Dummy(IRecordInfo *iface)
{
trace("Called an unexpected IRecordInfo method - please report!\n");
/* Quit because we'll just crash anyway */
......
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