Commit 233042bd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32: Build without WINE_NO_LONG_TYPES.

parent 576cdea0
...@@ -2,7 +2,7 @@ MODULE = ole32.dll ...@@ -2,7 +2,7 @@ MODULE = ole32.dll
IMPORTLIB = ole32 IMPORTLIB = ole32
IMPORTS = uuid advapi32 user32 gdi32 combase rpcrt4 kernelbase IMPORTS = uuid advapi32 user32 gdi32 combase rpcrt4 kernelbase
DELAYIMPORTS = oleaut32 DELAYIMPORTS = oleaut32
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_OLE32_ EXTRADEFS = -D_OLE32_
C_SRCS = \ C_SRCS = \
antimoniker.c \ antimoniker.c \
......
...@@ -122,7 +122,7 @@ static ULONG WINAPI AntiMonikerImpl_AddRef(IMoniker *iface) ...@@ -122,7 +122,7 @@ static ULONG WINAPI AntiMonikerImpl_AddRef(IMoniker *iface)
AntiMonikerImpl *moniker = impl_from_IMoniker(iface); AntiMonikerImpl *moniker = impl_from_IMoniker(iface);
ULONG refcount = InterlockedIncrement(&moniker->refcount); ULONG refcount = InterlockedIncrement(&moniker->refcount);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount; return refcount;
} }
...@@ -135,7 +135,7 @@ static ULONG WINAPI AntiMonikerImpl_Release(IMoniker *iface) ...@@ -135,7 +135,7 @@ static ULONG WINAPI AntiMonikerImpl_Release(IMoniker *iface)
AntiMonikerImpl *moniker = impl_from_IMoniker(iface); AntiMonikerImpl *moniker = impl_from_IMoniker(iface);
ULONG refcount = InterlockedDecrement(&moniker->refcount); ULONG refcount = InterlockedDecrement(&moniker->refcount);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -261,14 +261,11 @@ AntiMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLef ...@@ -261,14 +261,11 @@ AntiMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLef
return E_NOTIMPL; return E_NOTIMPL;
} }
/******************************************************************************
* AntiMoniker_Reduce
******************************************************************************/
static HRESULT WINAPI static HRESULT WINAPI
AntiMonikerImpl_Reduce(IMoniker* iface, IBindCtx* pbc, DWORD dwReduceHowFar, AntiMonikerImpl_Reduce(IMoniker* iface, IBindCtx* pbc, DWORD dwReduceHowFar,
IMoniker** ppmkToLeft, IMoniker** ppmkReduced) IMoniker** ppmkToLeft, IMoniker** ppmkReduced)
{ {
TRACE("(%p,%p,%d,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced); TRACE("%p, %p, %ld, %p, %p.\n", iface, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
if (ppmkReduced==NULL) if (ppmkReduced==NULL)
return E_POINTER; return E_POINTER;
...@@ -556,7 +553,7 @@ AntiMonikerROTDataImpl_GetComparisonData(IROTData *iface, BYTE *data, ULONG data ...@@ -556,7 +553,7 @@ AntiMonikerROTDataImpl_GetComparisonData(IROTData *iface, BYTE *data, ULONG data
{ {
AntiMonikerImpl *moniker = impl_from_IROTData(iface); AntiMonikerImpl *moniker = impl_from_IROTData(iface);
TRACE("%p, %p, %u, %p.\n", iface, data, data_len, data_req); TRACE("%p, %p, %lu, %p.\n", iface, data, data_len, data_req);
*data_req = sizeof(CLSID) + sizeof(DWORD); *data_req = sizeof(CLSID) + sizeof(DWORD);
if (data_len < *data_req) if (data_len < *data_req)
......
...@@ -118,7 +118,7 @@ static ULONG WINAPI BindCtxImpl_Release(IBindCtx* iface) ...@@ -118,7 +118,7 @@ static ULONG WINAPI BindCtxImpl_Release(IBindCtx* iface)
BindCtxImpl *context = impl_from_IBindCtx(iface); BindCtxImpl *context = impl_from_IBindCtx(iface);
ULONG refcount = InterlockedDecrement(&context->ref); ULONG refcount = InterlockedDecrement(&context->ref);
TRACE("%p refcount %d.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -234,7 +234,7 @@ BindCtxImpl_SetBindOptions(IBindCtx* iface,BIND_OPTS *pbindopts) ...@@ -234,7 +234,7 @@ BindCtxImpl_SetBindOptions(IBindCtx* iface,BIND_OPTS *pbindopts)
if (pbindopts->cbStruct > sizeof(This->options)) if (pbindopts->cbStruct > sizeof(This->options))
{ {
WARN("invalid size %u.\n", pbindopts->cbStruct); WARN("invalid size %lu.\n", pbindopts->cbStruct);
return E_INVALIDARG; return E_INVALIDARG;
} }
memcpy(&This->options, pbindopts, pbindopts->cbStruct); memcpy(&This->options, pbindopts, pbindopts->cbStruct);
...@@ -492,7 +492,7 @@ HRESULT WINAPI CreateBindCtx(DWORD reserved, IBindCtx **bind_context) ...@@ -492,7 +492,7 @@ HRESULT WINAPI CreateBindCtx(DWORD reserved, IBindCtx **bind_context)
{ {
BindCtxImpl *object; BindCtxImpl *object;
TRACE("%#x, %p\n", reserved, bind_context); TRACE("%#lx, %p.\n", reserved, bind_context);
if (!bind_context) return E_INVALIDARG; if (!bind_context) return E_INVALIDARG;
...@@ -500,7 +500,7 @@ HRESULT WINAPI CreateBindCtx(DWORD reserved, IBindCtx **bind_context) ...@@ -500,7 +500,7 @@ HRESULT WINAPI CreateBindCtx(DWORD reserved, IBindCtx **bind_context)
if (reserved) if (reserved)
{ {
WARN("reserved should be 0, not 0x%x\n", reserved); WARN("reserved should be 0, not %#lx.\n", reserved);
return E_INVALIDARG; return E_INVALIDARG;
} }
...@@ -539,7 +539,7 @@ HRESULT WINAPI BindMoniker(LPMONIKER pmk, DWORD grfOpt, REFIID riid, LPVOID * pp ...@@ -539,7 +539,7 @@ HRESULT WINAPI BindMoniker(LPMONIKER pmk, DWORD grfOpt, REFIID riid, LPVOID * pp
HRESULT res; HRESULT res;
IBindCtx * pbc; IBindCtx * pbc;
TRACE("(%p, %x, %s, %p)\n", pmk, grfOpt, debugstr_guid(riid), ppvResult); TRACE("%p, %lx, %s, %p.\n", pmk, grfOpt, debugstr_guid(riid), ppvResult);
res = CreateBindCtx(grfOpt, &pbc); res = CreateBindCtx(grfOpt, &pbc);
if (SUCCEEDED(res)) if (SUCCEEDED(res))
......
...@@ -133,7 +133,7 @@ static ULONG WINAPI ClassMoniker_Release(IMoniker* iface) ...@@ -133,7 +133,7 @@ static ULONG WINAPI ClassMoniker_Release(IMoniker* iface)
ClassMoniker *moniker = impl_from_IMoniker(iface); ClassMoniker *moniker = impl_from_IMoniker(iface);
ULONG ref = InterlockedDecrement(&moniker->ref); ULONG ref = InterlockedDecrement(&moniker->ref);
TRACE("%p refcount %d\n", iface, ref); TRACE("%p, refcount %lu.\n", iface, ref);
if (!ref) if (!ref)
{ {
...@@ -190,7 +190,7 @@ static HRESULT WINAPI ClassMoniker_Load(IMoniker *iface, IStream *stream) ...@@ -190,7 +190,7 @@ static HRESULT WINAPI ClassMoniker_Load(IMoniker *iface, IStream *stream)
heap_free(moniker->data); heap_free(moniker->data);
if (!(moniker->data = heap_alloc(moniker->header.data_len))) if (!(moniker->data = heap_alloc(moniker->header.data_len)))
{ {
WARN("Failed to allocate moniker data of size %u.\n", moniker->header.data_len); WARN("Failed to allocate moniker data of size %lu.\n", moniker->header.data_len);
moniker->header.data_len = 0; moniker->header.data_len = 0;
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
} }
...@@ -278,16 +278,10 @@ static HRESULT WINAPI ClassMoniker_BindToStorage(IMoniker* iface, ...@@ -278,16 +278,10 @@ static HRESULT WINAPI ClassMoniker_BindToStorage(IMoniker* iface,
return IMoniker_BindToObject(iface, pbc, pmkToLeft, riid, ppvResult); return IMoniker_BindToObject(iface, pbc, pmkToLeft, riid, ppvResult);
} }
/****************************************************************************** static HRESULT WINAPI ClassMoniker_Reduce(IMoniker* iface, IBindCtx *pbc,
* ClassMoniker_Reduce DWORD dwReduceHowFar, IMoniker **ppmkToLeft, IMoniker **ppmkReduced)
******************************************************************************/
static HRESULT WINAPI ClassMoniker_Reduce(IMoniker* iface,
IBindCtx* pbc,
DWORD dwReduceHowFar,
IMoniker** ppmkToLeft,
IMoniker** ppmkReduced)
{ {
TRACE("(%p,%p,%d,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced); TRACE("%p, %p, %ld, %p, %p.\n", iface, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
if (!ppmkReduced) if (!ppmkReduced)
return E_POINTER; return E_POINTER;
...@@ -547,7 +541,7 @@ static HRESULT WINAPI ClassMonikerROTData_GetComparisonData(IROTData* iface, ...@@ -547,7 +541,7 @@ static HRESULT WINAPI ClassMonikerROTData_GetComparisonData(IROTData* iface,
{ {
ClassMoniker *This = impl_from_IROTData(iface); ClassMoniker *This = impl_from_IROTData(iface);
TRACE("(%p, %u, %p)\n", pbData, cbMax, pcbData); TRACE("%p, %p, %lu, %p.\n", iface, pbData, cbMax, pcbData);
*pcbData = 2*sizeof(CLSID); *pcbData = 2*sizeof(CLSID);
if (cbMax < *pcbData) if (cbMax < *pcbData)
......
...@@ -277,7 +277,7 @@ static inline HRESULT get_ole_clipbrd(ole_clipbrd **clipbrd) ...@@ -277,7 +277,7 @@ static inline HRESULT get_ole_clipbrd(ole_clipbrd **clipbrd)
static inline const char *dump_fmtetc(FORMATETC *fmt) static inline const char *dump_fmtetc(FORMATETC *fmt)
{ {
if (!fmt) return "(null)"; if (!fmt) return "(null)";
return wine_dbg_sprintf("cf %04x ptd %p aspect %x lindex %d tymed %x", return wine_dbg_sprintf("cf %04x ptd %p aspect %lx lindex %ld tymed %lx",
fmt->cfFormat, fmt->ptd, fmt->dwAspect, fmt->lindex, fmt->tymed); fmt->cfFormat, fmt->ptd, fmt->dwAspect, fmt->lindex, fmt->tymed);
} }
...@@ -338,9 +338,11 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_QueryInterface ...@@ -338,9 +338,11 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_QueryInterface
static ULONG WINAPI OLEClipbrd_IEnumFORMATETC_AddRef(LPENUMFORMATETC iface) static ULONG WINAPI OLEClipbrd_IEnumFORMATETC_AddRef(LPENUMFORMATETC iface)
{ {
enum_fmtetc *This = impl_from_IEnumFORMATETC(iface); enum_fmtetc *This = impl_from_IEnumFORMATETC(iface);
TRACE("(%p)->(count=%u)\n",This, This->ref); ULONG ref = InterlockedIncrement(&This->ref);
return InterlockedIncrement(&This->ref); TRACE("%p, refcount %lu.\n", iface, ref);
return ref;
} }
/************************************************************************ /************************************************************************
...@@ -351,11 +353,10 @@ static ULONG WINAPI OLEClipbrd_IEnumFORMATETC_AddRef(LPENUMFORMATETC iface) ...@@ -351,11 +353,10 @@ static ULONG WINAPI OLEClipbrd_IEnumFORMATETC_AddRef(LPENUMFORMATETC iface)
static ULONG WINAPI OLEClipbrd_IEnumFORMATETC_Release(LPENUMFORMATETC iface) static ULONG WINAPI OLEClipbrd_IEnumFORMATETC_Release(LPENUMFORMATETC iface)
{ {
enum_fmtetc *This = impl_from_IEnumFORMATETC(iface); enum_fmtetc *This = impl_from_IEnumFORMATETC(iface);
ULONG ref; ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->(count=%u)\n",This, This->ref); TRACE("%p, refcount %lu.\n", iface, ref);
ref = InterlockedDecrement(&This->ref);
if (!ref) if (!ref)
{ {
TRACE("() - destroying IEnumFORMATETC(%p)\n",This); TRACE("() - destroying IEnumFORMATETC(%p)\n",This);
...@@ -415,7 +416,7 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_Next ...@@ -415,7 +416,7 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_Next
static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_Skip(LPENUMFORMATETC iface, ULONG celt) static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_Skip(LPENUMFORMATETC iface, ULONG celt)
{ {
enum_fmtetc *This = impl_from_IEnumFORMATETC(iface); enum_fmtetc *This = impl_from_IEnumFORMATETC(iface);
TRACE("(%p)->(num=%u)\n", This, celt); TRACE("%p, %lu.\n", iface, celt);
This->pos += celt; This->pos += celt;
if (This->pos > This->data->count) if (This->pos > This->data->count)
...@@ -650,7 +651,7 @@ static HRESULT render_embed_source_hack(IDataObject *data, LPFORMATETC fmt) ...@@ -650,7 +651,7 @@ static HRESULT render_embed_source_hack(IDataObject *data, LPFORMATETC fmt)
if (FAILED(hr = IDataObject_GetDataHere(theOleClipboard->src_data, fmt, &std))) if (FAILED(hr = IDataObject_GetDataHere(theOleClipboard->src_data, fmt, &std)))
{ {
WARN("() : IDataObject_GetDataHere failed to render clipboard data! (%x)\n", hr); WARN("() : IDataObject_GetDataHere failed to render clipboard data! (%lx)\n", hr);
GlobalFree(hStorage); GlobalFree(hStorage);
return hr; return hr;
} }
...@@ -1025,7 +1026,7 @@ static HRESULT render_format(IDataObject *data, LPFORMATETC fmt) ...@@ -1025,7 +1026,7 @@ static HRESULT render_format(IDataObject *data, LPFORMATETC fmt)
} }
else else
{ {
FIXME("Unhandled tymed %x\n", fmt->tymed); FIXME("Unhandled tymed %lx\n", fmt->tymed);
hr = DV_E_FORMATETC; hr = DV_E_FORMATETC;
} }
...@@ -1089,10 +1090,11 @@ static HRESULT WINAPI snapshot_QueryInterface(IDataObject *iface, ...@@ -1089,10 +1090,11 @@ static HRESULT WINAPI snapshot_QueryInterface(IDataObject *iface,
static ULONG WINAPI snapshot_AddRef(IDataObject *iface) static ULONG WINAPI snapshot_AddRef(IDataObject *iface)
{ {
snapshot *This = impl_from_IDataObject(iface); snapshot *This = impl_from_IDataObject(iface);
ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)->(count=%u)\n", This, This->ref); TRACE("%p, refcount %lu.\n", iface, ref);
return InterlockedIncrement(&This->ref); return ref;
} }
/************************************************************************ /************************************************************************
...@@ -1101,11 +1103,9 @@ static ULONG WINAPI snapshot_AddRef(IDataObject *iface) ...@@ -1101,11 +1103,9 @@ static ULONG WINAPI snapshot_AddRef(IDataObject *iface)
static ULONG WINAPI snapshot_Release(IDataObject *iface) static ULONG WINAPI snapshot_Release(IDataObject *iface)
{ {
snapshot *This = impl_from_IDataObject(iface); snapshot *This = impl_from_IDataObject(iface);
ULONG ref; ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->(count=%u)\n", This, This->ref);
ref = InterlockedDecrement(&This->ref); TRACE("%p, refcount %lu.\n", iface, ref);
if (ref == 0) if (ref == 0)
{ {
...@@ -1263,7 +1263,7 @@ static HRESULT get_priv_data(ole_priv_data **data) ...@@ -1263,7 +1263,7 @@ static HRESULT get_priv_data(ole_priv_data **data)
else else
TRACE("cf %04x\n", cf); TRACE("cf %04x\n", cf);
} }
TRACE("count %d\n", count); TRACE("count %ld\n", count);
size += count * sizeof(ret->entries[0]); size += count * sizeof(ret->entries[0]);
/* There are holes in fmtetc so zero init */ /* There are holes in fmtetc so zero init */
...@@ -1532,7 +1532,7 @@ static HRESULT WINAPI snapshot_GetData(IDataObject *iface, FORMATETC *fmt, ...@@ -1532,7 +1532,7 @@ static HRESULT WINAPI snapshot_GetData(IDataObject *iface, FORMATETC *fmt,
hr = get_stgmed_for_bitmap((HBITMAP)h, med); hr = get_stgmed_for_bitmap((HBITMAP)h, med);
else else
{ {
FIXME("Unhandled tymed - mask %x req tymed %x\n", mask, fmt->tymed); FIXME("Unhandled tymed - mask %lx req tymed %lx\n", mask, fmt->tymed);
hr = E_FAIL; hr = E_FAIL;
goto end; goto end;
} }
...@@ -1558,7 +1558,7 @@ static HRESULT WINAPI snapshot_GetDataHere(IDataObject *iface, FORMATETC *fmt, ...@@ -1558,7 +1558,7 @@ static HRESULT WINAPI snapshot_GetDataHere(IDataObject *iface, FORMATETC *fmt,
if ( !fmt || !med ) return E_INVALIDARG; if ( !fmt || !med ) return E_INVALIDARG;
TRACE("(%p, %p {%s}, %p (tymed %x)\n", iface, fmt, dump_fmtetc(fmt), med, med->tymed); TRACE("%p, %p {%s}, %p (tymed %lx)\n", iface, fmt, dump_fmtetc(fmt), med, med->tymed);
if ( !OpenClipboard(NULL)) return CLIPBRD_E_CANT_OPEN; if ( !OpenClipboard(NULL)) return CLIPBRD_E_CANT_OPEN;
...@@ -1642,7 +1642,7 @@ static HRESULT WINAPI snapshot_GetDataHere(IDataObject *iface, FORMATETC *fmt, ...@@ -1642,7 +1642,7 @@ static HRESULT WINAPI snapshot_GetDataHere(IDataObject *iface, FORMATETC *fmt,
break; break;
} }
default: default:
FIXME("Unhandled tymed - supported %x req tymed %x\n", supported, med->tymed); FIXME("Unhandled tymed - supported %x req tymed %lx\n", supported, med->tymed);
hr = E_FAIL; hr = E_FAIL;
goto end; goto end;
} }
...@@ -1710,7 +1710,7 @@ static HRESULT WINAPI snapshot_EnumFormatEtc(IDataObject *iface, DWORD dir, ...@@ -1710,7 +1710,7 @@ static HRESULT WINAPI snapshot_EnumFormatEtc(IDataObject *iface, DWORD dir,
HRESULT hr; HRESULT hr;
ole_priv_data *data = NULL; ole_priv_data *data = NULL;
TRACE("(%p, %x, %p)\n", iface, dir, enum_fmt); TRACE("%p, %lx, %p.\n", iface, dir, enum_fmt);
*enum_fmt = NULL; *enum_fmt = NULL;
...@@ -1737,7 +1737,7 @@ static HRESULT WINAPI snapshot_DAdvise(IDataObject *iface, FORMATETC *fmt, ...@@ -1737,7 +1737,7 @@ static HRESULT WINAPI snapshot_DAdvise(IDataObject *iface, FORMATETC *fmt,
DWORD flags, IAdviseSink *sink, DWORD flags, IAdviseSink *sink,
DWORD *conn) DWORD *conn)
{ {
TRACE("(%p, %p, %x, %p, %p): not implemented\n", iface, fmt, flags, sink, conn); TRACE("%p, %p, %lx, %p, %p.\n", iface, fmt, flags, sink, conn);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -1748,7 +1748,7 @@ static HRESULT WINAPI snapshot_DAdvise(IDataObject *iface, FORMATETC *fmt, ...@@ -1748,7 +1748,7 @@ static HRESULT WINAPI snapshot_DAdvise(IDataObject *iface, FORMATETC *fmt,
*/ */
static HRESULT WINAPI snapshot_DUnadvise(IDataObject* iface, DWORD conn) static HRESULT WINAPI snapshot_DUnadvise(IDataObject* iface, DWORD conn)
{ {
TRACE("(%p, %d): not implemented\n", iface, conn); TRACE("%p, %ld.\n", iface, conn);
return E_NOTIMPL; return E_NOTIMPL;
} }
......
...@@ -505,7 +505,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_GetCategoryDesc( ...@@ -505,7 +505,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_GetCategoryDesc(
HKEY key; HKEY key;
HRESULT res; HRESULT res;
TRACE("CATID: %s LCID: %x\n",debugstr_guid(rcatid), lcid); TRACE("CATID: %s LCID: %lx\n",debugstr_guid(rcatid), lcid);
if (rcatid == NULL || ppszDesc == NULL) return E_INVALIDARG; if (rcatid == NULL || ppszDesc == NULL) return E_INVALIDARG;
...@@ -589,10 +589,10 @@ static HRESULT WINAPI COMCAT_ICatInformation_IsClassOfCategories( ...@@ -589,10 +589,10 @@ static HRESULT WINAPI COMCAT_ICatInformation_IsClassOfCategories(
if (TRACE_ON(ole)) { if (TRACE_ON(ole)) {
ULONG count; ULONG count;
TRACE("CLSID: %s Implemented %u\n",debugstr_guid(rclsid),cImplemented); TRACE("CLSID: %s Implemented %lu\n",debugstr_guid(rclsid),cImplemented);
for (count = 0; count < cImplemented; ++count) for (count = 0; count < cImplemented; ++count)
TRACE(" %s\n",debugstr_guid(&rgcatidImpl[count])); TRACE(" %s\n",debugstr_guid(&rgcatidImpl[count]));
TRACE("Required %u\n",cRequired); TRACE("Required %lu\n",cRequired);
for (count = 0; count < cRequired; ++count) for (count = 0; count < cRequired; ++count)
TRACE(" %s\n",debugstr_guid(&rgcatidReq[count])); TRACE(" %s\n",debugstr_guid(&rgcatidReq[count]));
} }
......
...@@ -373,7 +373,7 @@ static ULONG WINAPI ISynchronize_fnAddRef(ISynchronize *iface) ...@@ -373,7 +373,7 @@ static ULONG WINAPI ISynchronize_fnAddRef(ISynchronize *iface)
{ {
MREImpl *This = impl_from_ISynchronize(iface); MREImpl *This = impl_from_ISynchronize(iface);
LONG ref = InterlockedIncrement(&This->ref); LONG ref = InterlockedIncrement(&This->ref);
TRACE("%p - ref %d\n", This, ref); TRACE("%p, refcount %ld.\n", iface, ref);
return ref; return ref;
} }
...@@ -382,7 +382,7 @@ static ULONG WINAPI ISynchronize_fnRelease(ISynchronize *iface) ...@@ -382,7 +382,7 @@ static ULONG WINAPI ISynchronize_fnRelease(ISynchronize *iface)
{ {
MREImpl *This = impl_from_ISynchronize(iface); MREImpl *This = impl_from_ISynchronize(iface);
LONG ref = InterlockedDecrement(&This->ref); LONG ref = InterlockedDecrement(&This->ref);
TRACE("%p - ref %d\n", This, ref); TRACE("%p, refcount %ld.\n", iface, ref);
if(!ref) if(!ref)
{ {
...@@ -397,7 +397,7 @@ static HRESULT WINAPI ISynchronize_fnWait(ISynchronize *iface, DWORD dwFlags, DW ...@@ -397,7 +397,7 @@ static HRESULT WINAPI ISynchronize_fnWait(ISynchronize *iface, DWORD dwFlags, DW
{ {
MREImpl *This = impl_from_ISynchronize(iface); MREImpl *This = impl_from_ISynchronize(iface);
DWORD index; DWORD index;
TRACE("%p (%08x, %08x)\n", This, dwFlags, dwMilliseconds); TRACE("%p, %#lx, %#lx.\n", iface, dwFlags, dwMilliseconds);
return CoWaitForMultipleHandles(dwFlags, dwMilliseconds, 1, &This->event, &index); return CoWaitForMultipleHandles(dwFlags, dwMilliseconds, 1, &This->event, &index);
} }
...@@ -929,7 +929,7 @@ HRESULT Handler_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -929,7 +929,7 @@ HRESULT Handler_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*/ */
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID reserved) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID reserved)
{ {
TRACE("%p 0x%x %p\n", hinstDLL, fdwReason, reserved); TRACE("%p, %#lx, %p.\n", hinstDLL, fdwReason, reserved);
switch(fdwReason) { switch(fdwReason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
......
...@@ -147,7 +147,7 @@ static ULONG WINAPI CompositeMonikerImpl_Release(IMoniker* iface) ...@@ -147,7 +147,7 @@ static ULONG WINAPI CompositeMonikerImpl_Release(IMoniker* iface)
CompositeMonikerImpl *moniker = impl_from_IMoniker(iface); CompositeMonikerImpl *moniker = impl_from_IMoniker(iface);
ULONG refcount = InterlockedDecrement(&moniker->ref); ULONG refcount = InterlockedDecrement(&moniker->ref);
TRACE("%p, refcount %u\n", iface, refcount); TRACE("%p, refcount %lu\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -205,13 +205,13 @@ static HRESULT WINAPI CompositeMonikerImpl_Load(IMoniker *iface, IStream *stream ...@@ -205,13 +205,13 @@ static HRESULT WINAPI CompositeMonikerImpl_Load(IMoniker *iface, IStream *stream
hr = IStream_Read(stream, &count, sizeof(DWORD), NULL); hr = IStream_Read(stream, &count, sizeof(DWORD), NULL);
if (hr != S_OK) if (hr != S_OK)
{ {
WARN("Failed to read component count, hr %#x.\n", hr); WARN("Failed to read component count, hr %#lx.\n", hr);
return hr; return hr;
} }
if (count < 2) if (count < 2)
{ {
WARN("Unexpected component count %u.\n", count); WARN("Unexpected component count %lu.\n", count);
return E_UNEXPECTED; return E_UNEXPECTED;
} }
...@@ -222,7 +222,7 @@ static HRESULT WINAPI CompositeMonikerImpl_Load(IMoniker *iface, IStream *stream ...@@ -222,7 +222,7 @@ static HRESULT WINAPI CompositeMonikerImpl_Load(IMoniker *iface, IStream *stream
{ {
if (FAILED(hr = OleLoadFromStream(stream, &IID_IMoniker, (void **)&m))) if (FAILED(hr = OleLoadFromStream(stream, &IID_IMoniker, (void **)&m)))
{ {
WARN("Failed to initialize component %u, hr %#x.\n", i, hr); WARN("Failed to initialize component %lu, hr %#lx.\n", i, hr);
IMoniker_Release(last); IMoniker_Release(last);
return hr; return hr;
} }
...@@ -416,7 +416,7 @@ static HRESULT WINAPI CompositeMonikerImpl_Reduce(IMoniker *iface, IBindCtx *pbc ...@@ -416,7 +416,7 @@ static HRESULT WINAPI CompositeMonikerImpl_Reduce(IMoniker *iface, IBindCtx *pbc
BOOL was_reduced; BOOL was_reduced;
HRESULT hr; HRESULT hr;
TRACE("%p, %p, %d, %p, %p.\n", iface, pbc, howfar, toleft, reduced); TRACE("%p, %p, %ld, %p, %p.\n", iface, pbc, howfar, toleft, reduced);
if (!pbc || !reduced) if (!pbc || !reduced)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -1021,7 +1021,7 @@ static HRESULT composite_get_moniker_comparison_data(IMoniker *moniker, ...@@ -1021,7 +1021,7 @@ static HRESULT composite_get_moniker_comparison_data(IMoniker *moniker,
if (FAILED(hr = IMoniker_QueryInterface(moniker, &IID_IROTData, (void **)&rot_data))) if (FAILED(hr = IMoniker_QueryInterface(moniker, &IID_IROTData, (void **)&rot_data)))
{ {
WARN("Failed to get IROTData for component moniker, hr %#x.\n", hr); WARN("Failed to get IROTData for component moniker, hr %#lx.\n", hr);
return hr; return hr;
} }
...@@ -1038,7 +1038,7 @@ static HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparisonData(IROTData *if ...@@ -1038,7 +1038,7 @@ static HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparisonData(IROTData *if
HRESULT hr; HRESULT hr;
ULONG len; ULONG len;
TRACE("%p, %p, %u, %p\n", iface, data, max_len, ret_len); TRACE("%p, %p, %lu, %p\n", iface, data, max_len, ret_len);
if (!moniker->comp_count) if (!moniker->comp_count)
return E_UNEXPECTED; return E_UNEXPECTED;
...@@ -1052,7 +1052,7 @@ static HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparisonData(IROTData *if ...@@ -1052,7 +1052,7 @@ static HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparisonData(IROTData *if
*ret_len += len; *ret_len += len;
else else
{ {
WARN("Failed to get comparison data length for left component, hr %#x.\n", hr); WARN("Failed to get comparison data length for left component, hr %#lx.\n", hr);
return hr; return hr;
} }
...@@ -1062,7 +1062,7 @@ static HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparisonData(IROTData *if ...@@ -1062,7 +1062,7 @@ static HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparisonData(IROTData *if
*ret_len += len; *ret_len += len;
else else
{ {
WARN("Failed to get comparison data length for right component, hr %#x.\n", hr); WARN("Failed to get comparison data length for right component, hr %#lx.\n", hr);
return hr; return hr;
} }
...@@ -1074,14 +1074,14 @@ static HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparisonData(IROTData *if ...@@ -1074,14 +1074,14 @@ static HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparisonData(IROTData *if
max_len -= sizeof(CLSID); max_len -= sizeof(CLSID);
if (FAILED(hr = composite_get_moniker_comparison_data(moniker->left, data, max_len, &len))) if (FAILED(hr = composite_get_moniker_comparison_data(moniker->left, data, max_len, &len)))
{ {
WARN("Failed to get comparison data for left component, hr %#x.\n", hr); WARN("Failed to get comparison data for left component, hr %#lx.\n", hr);
return hr; return hr;
} }
data += len; data += len;
max_len -= len; max_len -= len;
if (FAILED(hr = composite_get_moniker_comparison_data(moniker->right, data, max_len, &len))) if (FAILED(hr = composite_get_moniker_comparison_data(moniker->right, data, max_len, &len)))
{ {
WARN("Failed to get comparison data for right component, hr %#x.\n", hr); WARN("Failed to get comparison data for right component, hr %#lx.\n", hr);
return hr; return hr;
} }
...@@ -1121,7 +1121,7 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_GetUnmarshalClass( ...@@ -1121,7 +1121,7 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_GetUnmarshalClass(
{ {
CompositeMonikerImpl *This = impl_from_IMarshal(iface); CompositeMonikerImpl *This = impl_from_IMarshal(iface);
TRACE("(%s, %p, %x, %p, %x, %p)\n", debugstr_guid(riid), pv, TRACE("%s, %p, %lx, %p, %lx, %p.\n", debugstr_guid(riid), pv,
dwDestContext, pvDestContext, mshlflags, pCid); dwDestContext, pvDestContext, mshlflags, pCid);
return IMoniker_GetClassID(&This->IMoniker_iface, pCid); return IMoniker_GetClassID(&This->IMoniker_iface, pCid);
...@@ -1135,7 +1135,7 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_GetMarshalSizeMax( ...@@ -1135,7 +1135,7 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_GetMarshalSizeMax(
HRESULT hr; HRESULT hr;
ULONG size; ULONG size;
TRACE("(%s, %p, %x, %p, %x, %p)\n", debugstr_guid(riid), pv, TRACE("%s, %p, %lx, %p, %lx, %p.\n", debugstr_guid(riid), pv,
dwDestContext, pvDestContext, mshlflags, pSize); dwDestContext, pvDestContext, mshlflags, pSize);
if (!moniker->comp_count) if (!moniker->comp_count)
...@@ -1166,19 +1166,19 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_MarshalInterface(IMarshal *ifa ...@@ -1166,19 +1166,19 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_MarshalInterface(IMarshal *ifa
CompositeMonikerImpl *moniker = impl_from_IMarshal(iface); CompositeMonikerImpl *moniker = impl_from_IMarshal(iface);
HRESULT hr; HRESULT hr;
TRACE("%p, %p, %s, %p, %x, %p, %#x\n", iface, stream, debugstr_guid(riid), pv, dwDestContext, pvDestContext, flags); TRACE("%p, %p, %s, %p, %lx, %p, %#lx\n", iface, stream, debugstr_guid(riid), pv, dwDestContext, pvDestContext, flags);
if (!moniker->comp_count) if (!moniker->comp_count)
return E_UNEXPECTED; return E_UNEXPECTED;
if (FAILED(hr = CoMarshalInterface(stream, &IID_IMoniker, (IUnknown *)moniker->left, dwDestContext, pvDestContext, flags))) if (FAILED(hr = CoMarshalInterface(stream, &IID_IMoniker, (IUnknown *)moniker->left, dwDestContext, pvDestContext, flags)))
{ {
WARN("Failed to marshal left component, hr %#x.\n", hr); WARN("Failed to marshal left component, hr %#lx.\n", hr);
return hr; return hr;
} }
if (FAILED(hr = CoMarshalInterface(stream, &IID_IMoniker, (IUnknown *)moniker->right, dwDestContext, pvDestContext, flags))) if (FAILED(hr = CoMarshalInterface(stream, &IID_IMoniker, (IUnknown *)moniker->right, dwDestContext, pvDestContext, flags)))
WARN("Failed to marshal right component, hr %#x.\n", hr); WARN("Failed to marshal right component, hr %#lx.\n", hr);
return hr; return hr;
} }
...@@ -1205,13 +1205,13 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_UnmarshalInterface(IMarshal *i ...@@ -1205,13 +1205,13 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_UnmarshalInterface(IMarshal *i
if (FAILED(hr = CoUnmarshalInterface(stream, &IID_IMoniker, (void **)&moniker->left))) if (FAILED(hr = CoUnmarshalInterface(stream, &IID_IMoniker, (void **)&moniker->left)))
{ {
WARN("Failed to unmarshal left moniker, hr %#x.\n", hr); WARN("Failed to unmarshal left moniker, hr %#lx.\n", hr);
return hr; return hr;
} }
if (FAILED(hr = CoUnmarshalInterface(stream, &IID_IMoniker, (void **)&moniker->right))) if (FAILED(hr = CoUnmarshalInterface(stream, &IID_IMoniker, (void **)&moniker->right)))
{ {
WARN("Failed to unmarshal right moniker, hr %#x.\n", hr); WARN("Failed to unmarshal right moniker, hr %#lx.\n", hr);
return hr; return hr;
} }
...@@ -1229,7 +1229,7 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_ReleaseMarshalData(IMarshal *i ...@@ -1229,7 +1229,7 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_ReleaseMarshalData(IMarshal *i
static HRESULT WINAPI CompositeMonikerMarshalImpl_DisconnectObject(IMarshal *iface, static HRESULT WINAPI CompositeMonikerMarshalImpl_DisconnectObject(IMarshal *iface,
DWORD dwReserved) DWORD dwReserved)
{ {
TRACE("(0x%x)\n", dwReserved); TRACE("%#lx\n", dwReserved);
/* can't disconnect a state-based marshal as nothing on server side to /* can't disconnect a state-based marshal as nothing on server side to
* disconnect from */ * disconnect from */
return S_OK; return S_OK;
...@@ -1286,7 +1286,7 @@ static ULONG WINAPI EnumMonikerImpl_Release(IEnumMoniker *iface) ...@@ -1286,7 +1286,7 @@ static ULONG WINAPI EnumMonikerImpl_Release(IEnumMoniker *iface)
ULONG refcount = InterlockedDecrement(&e->ref); ULONG refcount = InterlockedDecrement(&e->ref);
unsigned int i; unsigned int i;
TRACE("%p, refcount %d.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -1305,7 +1305,7 @@ static HRESULT WINAPI EnumMonikerImpl_Next(IEnumMoniker *iface, ULONG count, ...@@ -1305,7 +1305,7 @@ static HRESULT WINAPI EnumMonikerImpl_Next(IEnumMoniker *iface, ULONG count,
EnumMonikerImpl *e = impl_from_IEnumMoniker(iface); EnumMonikerImpl *e = impl_from_IEnumMoniker(iface);
unsigned int i; unsigned int i;
TRACE("%p, %u, %p, %p.\n", iface, count, m, fetched); TRACE("%p, %lu, %p, %p.\n", iface, count, m, fetched);
if (!m) if (!m)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -1329,7 +1329,7 @@ static HRESULT WINAPI EnumMonikerImpl_Skip(IEnumMoniker *iface, ULONG count) ...@@ -1329,7 +1329,7 @@ static HRESULT WINAPI EnumMonikerImpl_Skip(IEnumMoniker *iface, ULONG count)
{ {
EnumMonikerImpl *e = impl_from_IEnumMoniker(iface); EnumMonikerImpl *e = impl_from_IEnumMoniker(iface);
TRACE("%p, %u.\n", iface, count); TRACE("%p, %lu.\n", iface, count);
if (!count) if (!count)
return S_OK; return S_OK;
......
...@@ -215,7 +215,7 @@ static inline DataCache *impl_from_IAdviseSink( IAdviseSink *iface ) ...@@ -215,7 +215,7 @@ static inline DataCache *impl_from_IAdviseSink( IAdviseSink *iface )
const char *debugstr_formatetc(const FORMATETC *formatetc) const char *debugstr_formatetc(const FORMATETC *formatetc)
{ {
return wine_dbg_sprintf("{ cfFormat = 0x%x, ptd = %p, dwAspect = %d, lindex = %d, tymed = %d }", return wine_dbg_sprintf("{ cfFormat = 0x%x, ptd = %p, dwAspect = %ld, lindex = %ld, tymed = %ld }",
formatetc->cfFormat, formatetc->ptd, formatetc->dwAspect, formatetc->cfFormat, formatetc->ptd, formatetc->dwAspect,
formatetc->lindex, formatetc->tymed); formatetc->lindex, formatetc->tymed);
} }
...@@ -353,7 +353,7 @@ static HRESULT check_valid_formatetc( const FORMATETC *fmt ) ...@@ -353,7 +353,7 @@ static HRESULT check_valid_formatetc( const FORMATETC *fmt )
return CACHE_S_FORMATETC_NOTSUPPORTED; return CACHE_S_FORMATETC_NOTSUPPORTED;
else else
{ {
WARN("invalid clipformat/tymed combination: %d/%d\n", fmt->cfFormat, fmt->tymed); WARN("invalid clipformat/tymed combination: %d/%ld\n", fmt->cfFormat, fmt->tymed);
return DV_E_TYMED; return DV_E_TYMED;
} }
} }
...@@ -427,7 +427,7 @@ static void DataCache_FireOnViewChange( ...@@ -427,7 +427,7 @@ static void DataCache_FireOnViewChange(
DWORD aspect, DWORD aspect,
LONG lindex) LONG lindex)
{ {
TRACE("(%p, %x, %d)\n", this, aspect, lindex); TRACE("%p, %lx, %ld.\n", this, aspect, lindex);
/* /*
* The sink supplies a filter when it registers * The sink supplies a filter when it registers
...@@ -2018,7 +2018,7 @@ static HRESULT WINAPI DataCache_Draw( ...@@ -2018,7 +2018,7 @@ static HRESULT WINAPI DataCache_Draw(
HRESULT hres; HRESULT hres;
DataCacheEntry *cache_entry; DataCacheEntry *cache_entry;
TRACE("(%p, %x, %d, %p, %p, %p, %p, %p, %p, %lx)\n", TRACE("%p, %lx, %ld, %p, %p, %p, %p, %p, %p, %Ix.\n",
iface, iface,
dwDrawAspect, dwDrawAspect,
lindex, lindex,
...@@ -2184,7 +2184,7 @@ static HRESULT WINAPI DataCache_SetAdvise( ...@@ -2184,7 +2184,7 @@ static HRESULT WINAPI DataCache_SetAdvise(
{ {
DataCache *this = impl_from_IViewObject2(iface); DataCache *this = impl_from_IViewObject2(iface);
TRACE("(%p, %x, %x, %p)\n", iface, aspects, advf, pAdvSink); TRACE("%p, %lx, %lx, %p.\n", iface, aspects, advf, pAdvSink);
/* /*
* A call to this function removes the previous sink * A call to this function removes the previous sink
...@@ -2274,8 +2274,7 @@ static HRESULT WINAPI DataCache_GetExtent( ...@@ -2274,8 +2274,7 @@ static HRESULT WINAPI DataCache_GetExtent(
HRESULT hres = E_FAIL; HRESULT hres = E_FAIL;
DataCacheEntry *cache_entry; DataCacheEntry *cache_entry;
TRACE("(%p, %x, %d, %p, %p)\n", TRACE("%p, %lx, %ld, %p, %p.\n", iface, dwDrawAspect, lindex, ptd, lpsizel);
iface, dwDrawAspect, lindex, ptd, lpsizel);
if (lpsizel==NULL) if (lpsizel==NULL)
return E_POINTER; return E_POINTER;
...@@ -2284,7 +2283,7 @@ static HRESULT WINAPI DataCache_GetExtent( ...@@ -2284,7 +2283,7 @@ static HRESULT WINAPI DataCache_GetExtent(
lpsizel->cy = 0; lpsizel->cy = 0;
if (lindex!=-1) if (lindex!=-1)
FIXME("Unimplemented flag lindex = %d\n", lindex); FIXME("Unimplemented flag lindex = %ld\n", lindex);
/* /*
* Right now, we support only the callback from * Right now, we support only the callback from
...@@ -2445,7 +2444,7 @@ static HRESULT WINAPI DataCache_Cache( ...@@ -2445,7 +2444,7 @@ static HRESULT WINAPI DataCache_Cache(
HRESULT hr; HRESULT hr;
FORMATETC fmt_cpy; FORMATETC fmt_cpy;
TRACE("(%p, 0x%x, %p)\n", pformatetc, advf, pdwConnection); TRACE("%p, %#lx, %p.\n", pformatetc, advf, pdwConnection);
if (!pformatetc || !pdwConnection) if (!pformatetc || !pdwConnection)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -2496,7 +2495,7 @@ static HRESULT WINAPI DataCache_Uncache( ...@@ -2496,7 +2495,7 @@ static HRESULT WINAPI DataCache_Uncache(
DataCache *This = impl_from_IOleCache2(iface); DataCache *This = impl_from_IOleCache2(iface);
DataCacheEntry *cache_entry; DataCacheEntry *cache_entry;
TRACE("(%d)\n", dwConnection); TRACE("%ld\n", dwConnection);
LIST_FOR_EACH_ENTRY(cache_entry, &This->cache_list, DataCacheEntry, entry) LIST_FOR_EACH_ENTRY(cache_entry, &This->cache_list, DataCacheEntry, entry)
if (cache_entry->id == dwConnection) if (cache_entry->id == dwConnection)
...@@ -2505,7 +2504,7 @@ static HRESULT WINAPI DataCache_Uncache( ...@@ -2505,7 +2504,7 @@ static HRESULT WINAPI DataCache_Uncache(
return S_OK; return S_OK;
} }
WARN("no connection found for %d\n", dwConnection); WARN("no connection found for %ld\n", dwConnection);
return OLE_E_NOCONNECTION; return OLE_E_NOCONNECTION;
} }
...@@ -2626,7 +2625,7 @@ static HRESULT WINAPI DataCache_UpdateCache( IOleCache2 *iface, IDataObject *dat ...@@ -2626,7 +2625,7 @@ static HRESULT WINAPI DataCache_UpdateCache( IOleCache2 *iface, IDataObject *dat
int i, slots = 0; int i, slots = 0;
BOOL done_one = FALSE; BOOL done_one = FALSE;
TRACE( "(%p %p %08x %p)\n", iface, data, mode, reserved ); TRACE("%p, %p, %#lx, %p.\n", iface, data, mode, reserved );
LIST_FOR_EACH_ENTRY( cache_entry, &This->cache_list, DataCacheEntry, entry ) LIST_FOR_EACH_ENTRY( cache_entry, &This->cache_list, DataCacheEntry, entry )
{ {
...@@ -2705,7 +2704,7 @@ static HRESULT WINAPI DataCache_DiscardCache( ...@@ -2705,7 +2704,7 @@ static HRESULT WINAPI DataCache_DiscardCache(
DataCacheEntry *cache_entry; DataCacheEntry *cache_entry;
HRESULT hr = S_OK; HRESULT hr = S_OK;
TRACE("(%d)\n", dwDiscardOptions); TRACE("%ld\n", dwDiscardOptions);
if (dwDiscardOptions == DISCARDCACHE_SAVEIFDIRTY) if (dwDiscardOptions == DISCARDCACHE_SAVEIFDIRTY)
hr = DataCache_Save(&This->IPersistStorage_iface, This->presentationStorage, TRUE); hr = DataCache_Save(&This->IPersistStorage_iface, This->presentationStorage, TRUE);
......
...@@ -519,7 +519,7 @@ static HRESULT WINAPI DefaultHandler_Close( ...@@ -519,7 +519,7 @@ static HRESULT WINAPI DefaultHandler_Close(
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
HRESULT hr; HRESULT hr;
TRACE("(%d)\n", dwSaveOption); TRACE("%ld\n", dwSaveOption);
if (!object_is_running(This)) if (!object_is_running(This))
return S_OK; return S_OK;
...@@ -548,7 +548,7 @@ static HRESULT WINAPI DefaultHandler_SetMoniker( ...@@ -548,7 +548,7 @@ static HRESULT WINAPI DefaultHandler_SetMoniker(
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
HRESULT hr = S_OK; HRESULT hr = S_OK;
TRACE("(%p, %d, %p)\n", iface, dwWhichMoniker, pmk); TRACE("%p, %ld, %p.\n", iface, dwWhichMoniker, pmk);
if (object_is_running(This)) if (object_is_running(This))
{ {
...@@ -576,8 +576,7 @@ static HRESULT WINAPI DefaultHandler_GetMoniker( ...@@ -576,8 +576,7 @@ static HRESULT WINAPI DefaultHandler_GetMoniker(
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
HRESULT hr; HRESULT hr;
TRACE("(%p, %d, %d, %p)\n", TRACE("%p, %ld, %ld, %p.\n", iface, dwAssign, dwWhichMoniker, ppmk);
iface, dwAssign, dwWhichMoniker, ppmk);
if (object_is_running(This)) if (object_is_running(This))
{ {
...@@ -617,8 +616,7 @@ static HRESULT WINAPI DefaultHandler_InitFromData( ...@@ -617,8 +616,7 @@ static HRESULT WINAPI DefaultHandler_InitFromData(
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
HRESULT hr = OLE_E_NOTRUNNING; HRESULT hr = OLE_E_NOTRUNNING;
TRACE("(%p, %p, %d, %d)\n", TRACE("%p, %p, %d, %ld.\n", iface, pDataObject, fCreation, dwReserved);
iface, pDataObject, fCreation, dwReserved);
if (object_is_running(This)) if (object_is_running(This))
{ {
...@@ -646,8 +644,7 @@ static HRESULT WINAPI DefaultHandler_GetClipboardData( ...@@ -646,8 +644,7 @@ static HRESULT WINAPI DefaultHandler_GetClipboardData(
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
HRESULT hr = OLE_E_NOTRUNNING; HRESULT hr = OLE_E_NOTRUNNING;
TRACE("(%p, %d, %p)\n", TRACE("%p, %ld, %p.\n", iface, dwReserved, ppDataObject);
iface, dwReserved, ppDataObject);
if (object_is_running(This)) if (object_is_running(This))
{ {
...@@ -673,7 +670,7 @@ static HRESULT WINAPI DefaultHandler_DoVerb( ...@@ -673,7 +670,7 @@ static HRESULT WINAPI DefaultHandler_DoVerb(
IRunnableObject *pRunnableObj = &This->IRunnableObject_iface; IRunnableObject *pRunnableObj = &This->IRunnableObject_iface;
HRESULT hr; HRESULT hr;
TRACE("(%d, %p, %p, %d, %p, %s)\n", iVerb, lpmsg, pActiveSite, lindex, hwndParent, wine_dbgstr_rect(lprcPosRect)); TRACE("%ld, %p, %p, %ld, %p, %s.\n", iVerb, lpmsg, pActiveSite, lindex, hwndParent, wine_dbgstr_rect(lprcPosRect));
hr = IRunnableObject_Run(pRunnableObj, NULL); hr = IRunnableObject_Run(pRunnableObj, NULL);
if (FAILED(hr)) return hr; if (FAILED(hr)) return hr;
...@@ -809,7 +806,7 @@ static HRESULT WINAPI DefaultHandler_GetUserType( ...@@ -809,7 +806,7 @@ static HRESULT WINAPI DefaultHandler_GetUserType(
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
HRESULT hr; HRESULT hr;
TRACE("(%p, %d, %p)\n", iface, dwFormOfType, pszUserType); TRACE("%p, %ld, %p.\n", iface, dwFormOfType, pszUserType);
if (object_is_running(This)) if (object_is_running(This))
{ {
start_object_call( This ); start_object_call( This );
...@@ -836,8 +833,7 @@ static HRESULT WINAPI DefaultHandler_SetExtent( ...@@ -836,8 +833,7 @@ static HRESULT WINAPI DefaultHandler_SetExtent(
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
HRESULT hr = OLE_E_NOTRUNNING; HRESULT hr = OLE_E_NOTRUNNING;
TRACE("(%p, %x, (%d x %d))\n", iface, TRACE("%p, %lx, (%ld x %ld))\n", iface, dwDrawAspect, psizel->cx, psizel->cy);
dwDrawAspect, psizel->cx, psizel->cy);
if (object_is_running(This)) if (object_is_running(This))
{ {
...@@ -868,7 +864,7 @@ static HRESULT WINAPI DefaultHandler_GetExtent( ...@@ -868,7 +864,7 @@ static HRESULT WINAPI DefaultHandler_GetExtent(
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
TRACE("(%p, %x, %p)\n", iface, dwDrawAspect, psizel); TRACE("%p, %lx, %p.\n", iface, dwDrawAspect, psizel);
if (object_is_running(This)) if (object_is_running(This))
{ {
...@@ -947,7 +943,7 @@ static HRESULT WINAPI DefaultHandler_Unadvise( ...@@ -947,7 +943,7 @@ static HRESULT WINAPI DefaultHandler_Unadvise(
{ {
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
TRACE("(%p, %d)\n", iface, dwConnection); TRACE("%p, %ld.\n", iface, dwConnection);
/* /*
* If we don't have an advise holder yet, it means we don't have * If we don't have an advise holder yet, it means we don't have
...@@ -1003,7 +999,7 @@ static HRESULT WINAPI DefaultHandler_GetMiscStatus( ...@@ -1003,7 +999,7 @@ static HRESULT WINAPI DefaultHandler_GetMiscStatus(
HRESULT hres; HRESULT hres;
DefaultHandler *This = impl_from_IOleObject(iface); DefaultHandler *This = impl_from_IOleObject(iface);
TRACE("(%p, %x, %p)\n", iface, dwAspect, pdwStatus); TRACE("%p, %lx, %p.\n", iface, dwAspect, pdwStatus);
if (object_is_running(This)) if (object_is_running(This))
{ {
...@@ -1278,7 +1274,7 @@ static HRESULT WINAPI DefaultHandler_EnumFormatEtc( ...@@ -1278,7 +1274,7 @@ static HRESULT WINAPI DefaultHandler_EnumFormatEtc(
{ {
DefaultHandler *This = impl_from_IDataObject(iface); DefaultHandler *This = impl_from_IDataObject(iface);
TRACE("(%p, %x, %p)\n", iface, dwDirection, ppenumFormatEtc); TRACE("%p, %lx, %p.\n", iface, dwDirection, ppenumFormatEtc);
return OleRegEnumFormatEtc(&This->clsid, dwDirection, ppenumFormatEtc); return OleRegEnumFormatEtc(&This->clsid, dwDirection, ppenumFormatEtc);
} }
...@@ -1301,8 +1297,7 @@ static HRESULT WINAPI DefaultHandler_DAdvise( ...@@ -1301,8 +1297,7 @@ static HRESULT WINAPI DefaultHandler_DAdvise(
HRESULT hres = S_OK; HRESULT hres = S_OK;
DefaultHandler *This = impl_from_IDataObject(iface); DefaultHandler *This = impl_from_IDataObject(iface);
TRACE("(%p, %p, %d, %p, %p)\n", TRACE("%p, %p, %ld, %p, %p.\n", iface, pformatetc, advf, pAdvSink, pdwConnection);
iface, pformatetc, advf, pAdvSink, pdwConnection);
/* Make sure we have a data advise holder before we start. */ /* Make sure we have a data advise holder before we start. */
if (!This->dataAdviseHolder) if (!This->dataAdviseHolder)
...@@ -1341,7 +1336,7 @@ static HRESULT WINAPI DefaultHandler_DUnadvise( ...@@ -1341,7 +1336,7 @@ static HRESULT WINAPI DefaultHandler_DUnadvise(
{ {
DefaultHandler *This = impl_from_IDataObject(iface); DefaultHandler *This = impl_from_IDataObject(iface);
TRACE("(%p, %d)\n", iface, dwConnection); TRACE("%p, %ld.\n", iface, dwConnection);
/* /*
* If we don't have a data advise holder yet, it means that * If we don't have a data advise holder yet, it means that
...@@ -2154,7 +2149,7 @@ static DefaultHandler* DefaultHandler_Construct( ...@@ -2154,7 +2149,7 @@ static DefaultHandler* DefaultHandler_Construct(
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
This->object_state = object_state_running; This->object_state = object_state_running;
if (FAILED(hr)) if (FAILED(hr))
WARN("object creation failed with error %08x\n", hr); WARN("object creation failed with error %#lx\n", hr);
} }
else else
{ {
...@@ -2241,7 +2236,7 @@ HRESULT WINAPI OleCreateEmbeddingHelper( ...@@ -2241,7 +2236,7 @@ HRESULT WINAPI OleCreateEmbeddingHelper(
DefaultHandler* newHandler = NULL; DefaultHandler* newHandler = NULL;
HRESULT hr = S_OK; HRESULT hr = S_OK;
TRACE("(%s, %p, %08x, %p, %s, %p)\n", debugstr_guid(clsid), pUnkOuter, flags, pCF, debugstr_guid(riid), ppvObj); TRACE("%s, %p, %#lx, %p, %s, %p.\n", debugstr_guid(clsid), pUnkOuter, flags, pCF, debugstr_guid(riid), ppvObj);
if (!ppvObj) if (!ppvObj)
return E_POINTER; return E_POINTER;
......
...@@ -189,7 +189,7 @@ static HRESULT WINAPI FileLockBytesImpl_ReadAt( ...@@ -189,7 +189,7 @@ static HRESULT WINAPI FileLockBytesImpl_ReadAt(
LARGE_INTEGER offset; LARGE_INTEGER offset;
ULONG cbRead; ULONG cbRead;
TRACE("(%p)-> %i %p %i %p\n",This, ulOffset.u.LowPart, pv, cb, pcbRead); TRACE("%p, %ld, %p, %lu, %p.\n", iface, ulOffset.u.LowPart, pv, cb, pcbRead);
/* verify a sane environment */ /* verify a sane environment */
if (!This) return E_FAIL; if (!This) return E_FAIL;
...@@ -244,7 +244,7 @@ static HRESULT WINAPI FileLockBytesImpl_WriteAt( ...@@ -244,7 +244,7 @@ static HRESULT WINAPI FileLockBytesImpl_WriteAt(
LARGE_INTEGER offset; LARGE_INTEGER offset;
ULONG cbWritten; ULONG cbWritten;
TRACE("(%p)-> %i %p %i %p\n",This, ulOffset.u.LowPart, pv, cb, pcbWritten); TRACE("%p, %ld, %p, %lu, %p.\n", iface, ulOffset.u.LowPart, pv, cb, pcbWritten);
/* verify a sane environment */ /* verify a sane environment */
if (!This) return E_FAIL; if (!This) return E_FAIL;
...@@ -297,7 +297,7 @@ static HRESULT WINAPI FileLockBytesImpl_SetSize(ILockBytes* iface, ULARGE_INTEGE ...@@ -297,7 +297,7 @@ static HRESULT WINAPI FileLockBytesImpl_SetSize(ILockBytes* iface, ULARGE_INTEGE
HRESULT hr = S_OK; HRESULT hr = S_OK;
LARGE_INTEGER newpos; LARGE_INTEGER newpos;
TRACE("new size %u\n", newSize.u.LowPart); TRACE("new size %lu\n", newSize.u.LowPart);
newpos.QuadPart = newSize.QuadPart; newpos.QuadPart = newSize.QuadPart;
if (SetFilePointerEx(This->hfile, newpos, NULL, FILE_BEGIN)) if (SetFilePointerEx(This->hfile, newpos, NULL, FILE_BEGIN))
...@@ -316,7 +316,7 @@ static HRESULT get_lock_error(void) ...@@ -316,7 +316,7 @@ static HRESULT get_lock_error(void)
case ERROR_ACCESS_DENIED: return STG_E_ACCESSDENIED; break; case ERROR_ACCESS_DENIED: return STG_E_ACCESSDENIED; break;
case ERROR_NOT_SUPPORTED: return STG_E_INVALIDFUNCTION; break; case ERROR_NOT_SUPPORTED: return STG_E_INVALIDFUNCTION; break;
default: default:
FIXME("no mapping for error %d\n", GetLastError()); FIXME("no mapping for error %ld\n", GetLastError());
return STG_E_INVALIDFUNCTION; return STG_E_INVALIDFUNCTION;
} }
} }
...@@ -328,7 +328,7 @@ static HRESULT WINAPI FileLockBytesImpl_LockRegion(ILockBytes* iface, ...@@ -328,7 +328,7 @@ static HRESULT WINAPI FileLockBytesImpl_LockRegion(ILockBytes* iface,
OVERLAPPED ol; OVERLAPPED ol;
DWORD lock_flags = LOCKFILE_FAIL_IMMEDIATELY; DWORD lock_flags = LOCKFILE_FAIL_IMMEDIATELY;
TRACE("ofs %u count %u flags %x\n", libOffset.u.LowPart, cb.u.LowPart, dwLockType); TRACE("ofs %lu count %lu flags %lx\n", libOffset.u.LowPart, cb.u.LowPart, dwLockType);
if (dwLockType & LOCK_WRITE) if (dwLockType & LOCK_WRITE)
return STG_E_INVALIDFUNCTION; return STG_E_INVALIDFUNCTION;
...@@ -351,7 +351,7 @@ static HRESULT WINAPI FileLockBytesImpl_UnlockRegion(ILockBytes* iface, ...@@ -351,7 +351,7 @@ static HRESULT WINAPI FileLockBytesImpl_UnlockRegion(ILockBytes* iface,
FileLockBytesImpl* This = impl_from_ILockBytes(iface); FileLockBytesImpl* This = impl_from_ILockBytes(iface);
OVERLAPPED ol; OVERLAPPED ol;
TRACE("ofs %u count %u flags %x\n", libOffset.u.LowPart, cb.u.LowPart, dwLockType); TRACE("ofs %lu count %lu flags %lx\n", libOffset.u.LowPart, cb.u.LowPart, dwLockType);
if (dwLockType & LOCK_WRITE) if (dwLockType & LOCK_WRITE)
return STG_E_INVALIDFUNCTION; return STG_E_INVALIDFUNCTION;
......
...@@ -129,7 +129,7 @@ static ULONG WINAPI FileMonikerImpl_Release(IMoniker* iface) ...@@ -129,7 +129,7 @@ static ULONG WINAPI FileMonikerImpl_Release(IMoniker* iface)
FileMonikerImpl *moniker = impl_from_IMoniker(iface); FileMonikerImpl *moniker = impl_from_IMoniker(iface);
ULONG ref = InterlockedDecrement(&moniker->ref); ULONG ref = InterlockedDecrement(&moniker->ref);
TRACE("(%p, refcount %d)\n", iface, ref); TRACE("%p, refcount %lu.\n", iface, ref);
if (!ref) if (!ref)
{ {
...@@ -611,7 +611,7 @@ FileMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLef ...@@ -611,7 +611,7 @@ FileMonikerImpl_BindToStorage(IMoniker* iface, IBindCtx* pbc, IMoniker* pmkToLef
static HRESULT WINAPI FileMonikerImpl_Reduce(IMoniker *iface, IBindCtx *pbc, DWORD howfar, static HRESULT WINAPI FileMonikerImpl_Reduce(IMoniker *iface, IBindCtx *pbc, DWORD howfar,
IMoniker **toleft, IMoniker **reduced) IMoniker **toleft, IMoniker **reduced)
{ {
TRACE("%p, %p, %d, %p, %p.\n", iface, pbc, howfar, toleft, reduced); TRACE("%p, %p, %ld, %p, %p.\n", iface, pbc, howfar, toleft, reduced);
if (!pbc || !reduced) if (!pbc || !reduced)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -1233,7 +1233,7 @@ FileMonikerROTDataImpl_GetComparisonData(IROTData* iface, BYTE* pbData, ...@@ -1233,7 +1233,7 @@ FileMonikerROTDataImpl_GetComparisonData(IROTData* iface, BYTE* pbData,
int i; int i;
LPWSTR pszFileName; LPWSTR pszFileName;
TRACE("(%p, %u, %p)\n", pbData, cbMax, pcbData); TRACE("%p, %p, %lu, %p.\n", iface, pbData, cbMax, pcbData);
*pcbData = sizeof(CLSID) + len * sizeof(WCHAR); *pcbData = sizeof(CLSID) + len * sizeof(WCHAR);
if (cbMax < *pcbData) if (cbMax < *pcbData)
......
...@@ -95,7 +95,7 @@ static StdGITEntry* StdGlobalInterfaceTable_FindEntry(StdGlobalInterfaceTableImp ...@@ -95,7 +95,7 @@ static StdGITEntry* StdGlobalInterfaceTable_FindEntry(StdGlobalInterfaceTableImp
{ {
StdGITEntry* e; StdGITEntry* e;
TRACE("This=%p, cookie=0x%x\n", This, cookie); TRACE("%p, %#lx.\n", This, cookie);
LIST_FOR_EACH_ENTRY(e, &This->list, StdGITEntry, entry) { LIST_FOR_EACH_ENTRY(e, &This->list, StdGITEntry, entry) {
if (e->cookie == cookie) if (e->cookie == cookie)
...@@ -205,7 +205,7 @@ StdGlobalInterfaceTable_RegisterInterfaceInGlobal( ...@@ -205,7 +205,7 @@ StdGlobalInterfaceTable_RegisterInterfaceInGlobal(
LeaveCriticalSection(&git_section); LeaveCriticalSection(&git_section);
TRACE("Cookie is 0x%x\n", entry->cookie); TRACE("Cookie is %#lx\n", entry->cookie);
return S_OK; return S_OK;
} }
...@@ -217,7 +217,7 @@ StdGlobalInterfaceTable_RevokeInterfaceFromGlobal( ...@@ -217,7 +217,7 @@ StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(
StdGITEntry* entry; StdGITEntry* entry;
HRESULT hr; HRESULT hr;
TRACE("iface=%p, dwCookie=0x%x\n", iface, dwCookie); TRACE("%p, %#lx.\n", iface, dwCookie);
EnterCriticalSection(&git_section); EnterCriticalSection(&git_section);
...@@ -236,7 +236,7 @@ StdGlobalInterfaceTable_RevokeInterfaceFromGlobal( ...@@ -236,7 +236,7 @@ StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(
hr = CoReleaseMarshalData(entry->stream); hr = CoReleaseMarshalData(entry->stream);
if (hr != S_OK) if (hr != S_OK)
{ {
WARN("Failed to release marshal data, hr = 0x%08x\n", hr); WARN("Failed to release marshal data, hr = %#lx\n", hr);
return hr; return hr;
} }
IStream_Release(entry->stream); IStream_Release(entry->stream);
...@@ -255,13 +255,13 @@ StdGlobalInterfaceTable_GetInterfaceFromGlobal( ...@@ -255,13 +255,13 @@ StdGlobalInterfaceTable_GetInterfaceFromGlobal(
HRESULT hres; HRESULT hres;
IStream *stream; IStream *stream;
TRACE("dwCookie=0x%x, riid=%s, ppv=%p\n", dwCookie, debugstr_guid(riid), ppv); TRACE("%#lx, %s, %p.\n", dwCookie, debugstr_guid(riid), ppv);
EnterCriticalSection(&git_section); EnterCriticalSection(&git_section);
entry = StdGlobalInterfaceTable_FindEntry(This, dwCookie); entry = StdGlobalInterfaceTable_FindEntry(This, dwCookie);
if (entry == NULL) { if (entry == NULL) {
WARN("Entry for cookie 0x%x not found\n", dwCookie); WARN("Entry for cookie %#lx not found\n", dwCookie);
LeaveCriticalSection(&git_section); LeaveCriticalSection(&git_section);
return E_INVALIDARG; return E_INVALIDARG;
} }
...@@ -273,7 +273,7 @@ StdGlobalInterfaceTable_GetInterfaceFromGlobal( ...@@ -273,7 +273,7 @@ StdGlobalInterfaceTable_GetInterfaceFromGlobal(
LeaveCriticalSection(&git_section); LeaveCriticalSection(&git_section);
if (hres != S_OK) { if (hres != S_OK) {
WARN("Failed to clone stream with error 0x%08x\n", hres); WARN("Failed to clone stream with error %#lx.\n", hres);
return hres; return hres;
} }
......
...@@ -198,7 +198,7 @@ static ULONG WINAPI ItemMonikerImpl_Release(IMoniker* iface) ...@@ -198,7 +198,7 @@ static ULONG WINAPI ItemMonikerImpl_Release(IMoniker* iface)
ItemMonikerImpl *moniker = impl_from_IMoniker(iface); ItemMonikerImpl *moniker = impl_from_IMoniker(iface);
ULONG refcount = InterlockedDecrement(&moniker->ref); ULONG refcount = InterlockedDecrement(&moniker->ref);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -286,7 +286,7 @@ static HRESULT item_moniker_load_string_record(IStream *stream, WCHAR **ret) ...@@ -286,7 +286,7 @@ static HRESULT item_moniker_load_string_record(IStream *stream, WCHAR **ret)
if (str_len % sizeof(WCHAR)) if (str_len % sizeof(WCHAR))
{ {
WARN("Unexpected Unicode name length %d.\n", str_len); WARN("Unexpected Unicode name length %ld.\n", str_len);
hr = E_FAIL; hr = E_FAIL;
goto end; goto end;
} }
...@@ -491,16 +491,10 @@ static HRESULT WINAPI ItemMonikerImpl_BindToStorage(IMoniker *iface, IBindCtx *p ...@@ -491,16 +491,10 @@ static HRESULT WINAPI ItemMonikerImpl_BindToStorage(IMoniker *iface, IBindCtx *p
return hr; return hr;
} }
/****************************************************************************** static HRESULT WINAPI ItemMonikerImpl_Reduce(IMoniker* iface, IBindCtx* pbc,
* ItemMoniker_Reduce DWORD dwReduceHowFar, IMoniker** ppmkToLeft, IMoniker** ppmkReduced)
******************************************************************************/
static HRESULT WINAPI ItemMonikerImpl_Reduce(IMoniker* iface,
IBindCtx* pbc,
DWORD dwReduceHowFar,
IMoniker** ppmkToLeft,
IMoniker** ppmkReduced)
{ {
TRACE("(%p,%p,%d,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced); TRACE("%p, %p, %ld, %p, %p.\n", iface, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
if (ppmkReduced==NULL) if (ppmkReduced==NULL)
return E_POINTER; return E_POINTER;
...@@ -864,7 +858,7 @@ static HRESULT WINAPI ItemMonikerROTDataImpl_GetComparisonData(IROTData *iface, ...@@ -864,7 +858,7 @@ static HRESULT WINAPI ItemMonikerROTDataImpl_GetComparisonData(IROTData *iface,
int delim_len, i; int delim_len, i;
WCHAR *ptrW; WCHAR *ptrW;
TRACE("(%p, %p, %u, %p)\n", iface, buffer, max_len, data_len); TRACE("%p, %p, %lu, %p.\n", iface, buffer, max_len, data_len);
delim_len = This->itemDelimiter && This->itemDelimiter[0] ? lstrlenW(This->itemDelimiter) : 0; delim_len = This->itemDelimiter && This->itemDelimiter[0] ? lstrlenW(This->itemDelimiter) : 0;
*data_len = sizeof(CLSID) + sizeof(WCHAR) + (delim_len + name_len) * sizeof(WCHAR); *data_len = sizeof(CLSID) + sizeof(WCHAR) + (delim_len + name_len) * sizeof(WCHAR);
......
...@@ -160,7 +160,7 @@ HRESULT WINAPI GetHGlobalFromILockBytes(ILockBytes* iface, HGLOBAL* phglobal) ...@@ -160,7 +160,7 @@ HRESULT WINAPI GetHGlobalFromILockBytes(ILockBytes* iface, HGLOBAL* phglobal)
/* It is not our lockbytes implementation, so use a more generic way */ /* It is not our lockbytes implementation, so use a more generic way */
hres = ILockBytes_Stat(iface,&stbuf,STATFLAG_NONAME); hres = ILockBytes_Stat(iface,&stbuf,STATFLAG_NONAME);
if (hres != S_OK) { if (hres != S_OK) {
ERR("Cannot ILockBytes_Stat, %x\n",hres); ERR("Cannot ILockBytes_Stat, %lx\n",hres);
return hres; return hres;
} }
TRACE("cbSize is %s\n", wine_dbgstr_longlong(stbuf.cbSize.QuadPart)); TRACE("cbSize is %s\n", wine_dbgstr_longlong(stbuf.cbSize.QuadPart));
...@@ -171,11 +171,11 @@ HRESULT WINAPI GetHGlobalFromILockBytes(ILockBytes* iface, HGLOBAL* phglobal) ...@@ -171,11 +171,11 @@ HRESULT WINAPI GetHGlobalFromILockBytes(ILockBytes* iface, HGLOBAL* phglobal)
hres = ILockBytes_ReadAt(iface, start, GlobalLock(*phglobal), stbuf.cbSize.u.LowPart, &xread); hres = ILockBytes_ReadAt(iface, start, GlobalLock(*phglobal), stbuf.cbSize.u.LowPart, &xread);
GlobalUnlock(*phglobal); GlobalUnlock(*phglobal);
if (hres != S_OK) { if (hres != S_OK) {
FIXME("%p->ReadAt failed with %x\n",iface,hres); FIXME("%p->ReadAt failed with %lx\n",iface,hres);
return hres; return hres;
} }
if (stbuf.cbSize.u.LowPart != xread) { if (stbuf.cbSize.u.LowPart != xread) {
FIXME("Read size is not requested size %d vs %d?\n",stbuf.cbSize.u.LowPart, xread); FIXME("Read size is not requested size %ld vs %ld?\n",stbuf.cbSize.u.LowPart, xread);
} }
return S_OK; return S_OK;
} }
......
...@@ -159,7 +159,7 @@ static HRESULT get_moniker_comparison_data(IMoniker *pMoniker, MonikerComparison ...@@ -159,7 +159,7 @@ static HRESULT get_moniker_comparison_data(IMoniker *pMoniker, MonikerComparison
IROTData_Release(pROTData); IROTData_Release(pROTData);
if (hr != S_OK) if (hr != S_OK)
{ {
ERR("Failed to copy comparison data into buffer, hr = 0x%08x\n", hr); ERR("Failed to copy comparison data into buffer, hr = %#lx\n", hr);
HeapFree(GetProcessHeap(), 0, *moniker_data); HeapFree(GetProcessHeap(), 0, *moniker_data);
return hr; return hr;
} }
...@@ -218,7 +218,7 @@ static HRESULT reduce_moniker(IMoniker *pmk, IBindCtx *pbc, IMoniker **pmkReduce ...@@ -218,7 +218,7 @@ static HRESULT reduce_moniker(IMoniker *pmk, IBindCtx *pbc, IMoniker **pmkReduce
} }
hr = IMoniker_Reduce(pmk, pbc, MKRREDUCE_ALL, NULL, pmkReduced); hr = IMoniker_Reduce(pmk, pbc, MKRREDUCE_ALL, NULL, pmkReduced);
if (FAILED(hr)) if (FAILED(hr))
ERR("reducing moniker failed with error 0x%08x\n", hr); ERR("reducing moniker failed with error %#lx.\n", hr);
if (pbcNew) IBindCtx_Release(pbcNew); if (pbcNew) IBindCtx_Release(pbcNew);
return hr; return hr;
} }
...@@ -288,11 +288,11 @@ RunningObjectTableImpl_Register(IRunningObjectTable* iface, DWORD flags, ...@@ -288,11 +288,11 @@ RunningObjectTableImpl_Register(IRunningObjectTable* iface, DWORD flags,
IBindCtx *pbc; IBindCtx *pbc;
InterfaceData *moniker = NULL; InterfaceData *moniker = NULL;
TRACE("%p, %#x, %p, %p, %p\n", This, flags, punkObject, pmkObjectName, pdwRegister); TRACE("%p, %#lx, %p, %p, %p\n", iface, flags, punkObject, pmkObjectName, pdwRegister);
if (flags & ~(ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT)) if (flags & ~(ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT))
{ {
ERR("Invalid flags: 0x%08x\n", flags & ~(ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT)); ERR("Invalid flags: %#lx\n", flags & ~(ROTFLAGS_REGISTRATIONKEEPSALIVE|ROTFLAGS_ALLOWANYCLIENT));
return E_INVALIDARG; return E_INVALIDARG;
} }
...@@ -435,7 +435,7 @@ RunningObjectTableImpl_Revoke( IRunningObjectTable* iface, DWORD dwRegister) ...@@ -435,7 +435,7 @@ RunningObjectTableImpl_Revoke( IRunningObjectTable* iface, DWORD dwRegister)
RunningObjectTableImpl *This = impl_from_IRunningObjectTable(iface); RunningObjectTableImpl *This = impl_from_IRunningObjectTable(iface);
struct rot_entry *rot_entry; struct rot_entry *rot_entry;
TRACE("(%p,%d)\n",This,dwRegister); TRACE("%p, %ld.\n", iface, dwRegister);
EnterCriticalSection(&This->lock); EnterCriticalSection(&This->lock);
LIST_FOR_EACH_ENTRY(rot_entry, &This->rot, struct rot_entry, entry) LIST_FOR_EACH_ENTRY(rot_entry, &This->rot, struct rot_entry, entry)
...@@ -568,7 +568,7 @@ RunningObjectTableImpl_GetObject( IRunningObjectTable* iface, ...@@ -568,7 +568,7 @@ RunningObjectTableImpl_GetObject( IRunningObjectTable* iface,
} }
} }
else else
WARN("Moniker unavailable, IrotGetObject returned 0x%08x\n", hr); WARN("Moniker unavailable, IrotGetObject returned %#lx\n", hr);
HeapFree(GetProcessHeap(), 0, moniker_data); HeapFree(GetProcessHeap(), 0, moniker_data);
...@@ -590,7 +590,7 @@ RunningObjectTableImpl_NoteChangeTime(IRunningObjectTable* iface, ...@@ -590,7 +590,7 @@ RunningObjectTableImpl_NoteChangeTime(IRunningObjectTable* iface,
struct rot_entry *rot_entry; struct rot_entry *rot_entry;
HRESULT hr = E_INVALIDARG; HRESULT hr = E_INVALIDARG;
TRACE("(%p,%d,%p)\n",This,dwRegister,pfiletime); TRACE("%p, %ld, %p.\n", iface, dwRegister, pfiletime);
EnterCriticalSection(&This->lock); EnterCriticalSection(&This->lock);
LIST_FOR_EACH_ENTRY(rot_entry, &This->rot, struct rot_entry, entry) LIST_FOR_EACH_ENTRY(rot_entry, &This->rot, struct rot_entry, entry)
...@@ -608,7 +608,7 @@ RunningObjectTableImpl_NoteChangeTime(IRunningObjectTable* iface, ...@@ -608,7 +608,7 @@ RunningObjectTableImpl_NoteChangeTime(IRunningObjectTable* iface,
LeaveCriticalSection(&This->lock); LeaveCriticalSection(&This->lock);
done: done:
TRACE("-- 0x08%x\n", hr); TRACE("-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -661,7 +661,7 @@ RunningObjectTableImpl_GetTimeOfLastChange(IRunningObjectTable* iface, ...@@ -661,7 +661,7 @@ RunningObjectTableImpl_GetTimeOfLastChange(IRunningObjectTable* iface,
HeapFree(GetProcessHeap(), 0, moniker_data); HeapFree(GetProcessHeap(), 0, moniker_data);
TRACE("-- 0x%08x\n", hr); TRACE("-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -717,7 +717,7 @@ static RunningObjectTableImpl rot = ...@@ -717,7 +717,7 @@ static RunningObjectTableImpl rot =
*/ */
HRESULT WINAPI GetRunningObjectTable(DWORD reserved, IRunningObjectTable **ret) HRESULT WINAPI GetRunningObjectTable(DWORD reserved, IRunningObjectTable **ret)
{ {
TRACE("%#x, %p\n", reserved, ret); TRACE("%#lx, %p\n", reserved, ret);
if (reserved!=0) if (reserved!=0)
return E_UNEXPECTED; return E_UNEXPECTED;
...@@ -1048,7 +1048,7 @@ static HRESULT WINAPI EnumMonikerImpl_Next(IEnumMoniker* iface, ULONG celt, IM ...@@ -1048,7 +1048,7 @@ static HRESULT WINAPI EnumMonikerImpl_Next(IEnumMoniker* iface, ULONG celt, IM
EnumMonikerImpl *This = impl_from_IEnumMoniker(iface); EnumMonikerImpl *This = impl_from_IEnumMoniker(iface);
HRESULT hr = S_OK; HRESULT hr = S_OK;
TRACE("(%p) TabCurrentPos %d Tablastindx %d\n", This, This->pos, This->moniker_list->size); TRACE("%p, %lu, %p, %p.\n", iface, celt, rgelt, pceltFetched);
/* retrieve the requested number of moniker from the current position */ /* retrieve the requested number of moniker from the current position */
for(i = 0; (This->pos < This->moniker_list->size) && (i < celt); i++) for(i = 0; (This->pos < This->moniker_list->size) && (i < celt); i++)
...@@ -1270,7 +1270,7 @@ static HRESULT WINAPI MonikerMarshal_GetUnmarshalClass( ...@@ -1270,7 +1270,7 @@ static HRESULT WINAPI MonikerMarshal_GetUnmarshalClass(
{ {
MonikerMarshal *This = impl_from_IMarshal(iface); MonikerMarshal *This = impl_from_IMarshal(iface);
TRACE("(%s, %p, %x, %p, %x, %p)\n", debugstr_guid(riid), pv, TRACE("%s, %p, %lx, %p, %lx, %p.\n", debugstr_guid(riid), pv,
dwDestContext, pvDestContext, mshlflags, pCid); dwDestContext, pvDestContext, mshlflags, pCid);
return IMoniker_GetClassID(This->moniker, pCid); return IMoniker_GetClassID(This->moniker, pCid);
...@@ -1284,7 +1284,7 @@ static HRESULT WINAPI MonikerMarshal_GetMarshalSizeMax( ...@@ -1284,7 +1284,7 @@ static HRESULT WINAPI MonikerMarshal_GetMarshalSizeMax(
HRESULT hr; HRESULT hr;
ULARGE_INTEGER size; ULARGE_INTEGER size;
TRACE("(%s, %p, %x, %p, %x, %p)\n", debugstr_guid(riid), pv, TRACE("%s, %p, %lx, %p, %lx, %p.\n", debugstr_guid(riid), pv,
dwDestContext, pvDestContext, mshlflags, pSize); dwDestContext, pvDestContext, mshlflags, pSize);
hr = IMoniker_GetSizeMax(This->moniker, &size); hr = IMoniker_GetSizeMax(This->moniker, &size);
...@@ -1299,7 +1299,7 @@ static HRESULT WINAPI MonikerMarshal_MarshalInterface(LPMARSHAL iface, IStream * ...@@ -1299,7 +1299,7 @@ static HRESULT WINAPI MonikerMarshal_MarshalInterface(LPMARSHAL iface, IStream *
{ {
MonikerMarshal *This = impl_from_IMarshal(iface); MonikerMarshal *This = impl_from_IMarshal(iface);
TRACE("(%p, %s, %p, %x, %p, %x)\n", pStm, debugstr_guid(riid), pv, TRACE("%p, %s, %p, %lx, %p, %lx.\n", pStm, debugstr_guid(riid), pv,
dwDestContext, pvDestContext, mshlflags); dwDestContext, pvDestContext, mshlflags);
return IMoniker_Save(This->moniker, pStm, FALSE); return IMoniker_Save(This->moniker, pStm, FALSE);
......
...@@ -253,8 +253,9 @@ void WINAPI DECLSPEC_HOTPATCH OleUninitialize(void) ...@@ -253,8 +253,9 @@ void WINAPI DECLSPEC_HOTPATCH OleUninitialize(void)
/****************************************************************************** /******************************************************************************
* OleInitializeWOW [OLE32.@] * OleInitializeWOW [OLE32.@]
*/ */
HRESULT WINAPI OleInitializeWOW(DWORD x, DWORD y) { HRESULT WINAPI OleInitializeWOW(DWORD x, DWORD y)
FIXME("(0x%08x, 0x%08x),stub!\n",x, y); {
FIXME("%#lx, %#lx stub!\n", x, y);
return 0; return 0;
} }
...@@ -664,7 +665,7 @@ HRESULT WINAPI OleRegGetUserType(REFCLSID clsid, DWORD form, LPOLESTR *usertype) ...@@ -664,7 +665,7 @@ HRESULT WINAPI OleRegGetUserType(REFCLSID clsid, DWORD form, LPOLESTR *usertype)
HRESULT hres; HRESULT hres;
LONG ret; LONG ret;
TRACE("(%s, %u, %p)\n", debugstr_guid(clsid), form, usertype); TRACE("%s, %lu, %p.\n", debugstr_guid(clsid), form, usertype);
if (!usertype) if (!usertype)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -735,7 +736,7 @@ HRESULT WINAPI DoDragDrop ( ...@@ -735,7 +736,7 @@ HRESULT WINAPI DoDragDrop (
HWND hwndTrackWindow; HWND hwndTrackWindow;
MSG msg; MSG msg;
TRACE("(%p, %p, %08x, %p)\n", pDataObject, pDropSource, dwOKEffect, pdwEffect); TRACE("%p, %p, %#lx, %p.\n", pDataObject, pDropSource, dwOKEffect, pdwEffect);
if (!pDataObject || !pDropSource || !pdwEffect) if (!pDataObject || !pDropSource || !pdwEffect)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -844,7 +845,7 @@ HRESULT WINAPI OleRegGetMiscStatus( ...@@ -844,7 +845,7 @@ HRESULT WINAPI OleRegGetMiscStatus(
LONG result; LONG result;
HRESULT hr; HRESULT hr;
TRACE("(%s, %d, %p)\n", debugstr_guid(clsid), dwAspect, pdwStatus); TRACE("%s, %ld, %p.\n", debugstr_guid(clsid), dwAspect, pdwStatus);
if (!pdwStatus) return E_INVALIDARG; if (!pdwStatus) return E_INVALIDARG;
...@@ -934,7 +935,7 @@ static HRESULT WINAPI EnumOLEVERB_Next( ...@@ -934,7 +935,7 @@ static HRESULT WINAPI EnumOLEVERB_Next(
EnumOLEVERB *This = impl_from_IEnumOLEVERB(iface); EnumOLEVERB *This = impl_from_IEnumOLEVERB(iface);
HRESULT hr = S_OK; HRESULT hr = S_OK;
TRACE("(%d, %p, %p)\n", celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", iface, celt, rgelt, pceltFetched);
if (pceltFetched) if (pceltFetched)
*pceltFetched = 0; *pceltFetched = 0;
...@@ -954,14 +955,14 @@ static HRESULT WINAPI EnumOLEVERB_Next( ...@@ -954,14 +955,14 @@ static HRESULT WINAPI EnumOLEVERB_Next(
} }
else if (res != ERROR_SUCCESS) else if (res != ERROR_SUCCESS)
{ {
ERR("RegEnumKeyW failed with error %d\n", res); ERR("RegEnumKeyW failed with error %ld\n", res);
hr = REGDB_E_READREGDB; hr = REGDB_E_READREGDB;
break; break;
} }
res = RegQueryValueW(This->hkeyVerb, wszSubKey, NULL, &cbData); res = RegQueryValueW(This->hkeyVerb, wszSubKey, NULL, &cbData);
if (res != ERROR_SUCCESS) if (res != ERROR_SUCCESS)
{ {
ERR("RegQueryValueW failed with error %d\n", res); ERR("RegQueryValueW failed with error %ld\n", res);
hr = REGDB_E_READREGDB; hr = REGDB_E_READREGDB;
break; break;
} }
...@@ -974,7 +975,7 @@ static HRESULT WINAPI EnumOLEVERB_Next( ...@@ -974,7 +975,7 @@ static HRESULT WINAPI EnumOLEVERB_Next(
res = RegQueryValueW(This->hkeyVerb, wszSubKey, pwszOLEVERB, &cbData); res = RegQueryValueW(This->hkeyVerb, wszSubKey, pwszOLEVERB, &cbData);
if (res != ERROR_SUCCESS) if (res != ERROR_SUCCESS)
{ {
ERR("RegQueryValueW failed with error %d\n", res); ERR("RegQueryValueW failed with error %ld\n", res);
hr = REGDB_E_READREGDB; hr = REGDB_E_READREGDB;
CoTaskMemFree(pwszOLEVERB); CoTaskMemFree(pwszOLEVERB);
break; break;
...@@ -1020,7 +1021,7 @@ static HRESULT WINAPI EnumOLEVERB_Skip( ...@@ -1020,7 +1021,7 @@ static HRESULT WINAPI EnumOLEVERB_Skip(
{ {
EnumOLEVERB *This = impl_from_IEnumOLEVERB(iface); EnumOLEVERB *This = impl_from_IEnumOLEVERB(iface);
TRACE("(%d)\n", celt); TRACE("%p, %lu.\n", iface, celt);
This->index += celt; This->index += celt;
return S_OK; return S_OK;
...@@ -1108,7 +1109,7 @@ HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum) ...@@ -1108,7 +1109,7 @@ HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum)
else if (res == REGDB_E_KEYMISSING) else if (res == REGDB_E_KEYMISSING)
ERR("no Verbs key for class %s\n", debugstr_guid(clsid)); ERR("no Verbs key for class %s\n", debugstr_guid(clsid));
else else
ERR("failed to open Verbs key for CLSID %s with error %d\n", ERR("failed to open Verbs key for CLSID %s with error %ld\n",
debugstr_guid(clsid), res); debugstr_guid(clsid), res);
return res; return res;
} }
...@@ -1117,7 +1118,7 @@ HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum) ...@@ -1117,7 +1118,7 @@ HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum)
NULL, NULL, NULL, NULL, NULL, NULL); NULL, NULL, NULL, NULL, NULL, NULL);
if (res != ERROR_SUCCESS) if (res != ERROR_SUCCESS)
{ {
ERR("failed to get subkey count with error %d\n", GetLastError()); ERR("failed to get subkey count with error %ld\n", GetLastError());
return REGDB_E_READREGDB; return REGDB_E_READREGDB;
} }
...@@ -1602,7 +1603,7 @@ static LRESULT CALLBACK OLEMenu_CallWndProc(INT code, WPARAM wParam, LPARAM lPar ...@@ -1602,7 +1603,7 @@ static LRESULT CALLBACK OLEMenu_CallWndProc(INT code, WPARAM wParam, LPARAM lPar
OleMenuHookItem *pHookItem = NULL; OleMenuHookItem *pHookItem = NULL;
WORD fuFlags; WORD fuFlags;
TRACE("%i, %04lx, %08lx\n", code, wParam, lParam ); TRACE("%i, %#Ix, %#Ix.\n", code, wParam, lParam );
/* Check if we're being asked to process the message */ /* Check if we're being asked to process the message */
if ( HC_ACTION != code ) if ( HC_ACTION != code )
...@@ -1707,7 +1708,7 @@ static LRESULT CALLBACK OLEMenu_GetMsgProc(INT code, WPARAM wParam, LPARAM lPara ...@@ -1707,7 +1708,7 @@ static LRESULT CALLBACK OLEMenu_GetMsgProc(INT code, WPARAM wParam, LPARAM lPara
OleMenuHookItem *pHookItem = NULL; OleMenuHookItem *pHookItem = NULL;
WORD wCode; WORD wCode;
TRACE("%i, %04lx, %08lx\n", code, wParam, lParam ); TRACE("%i, %#Ix, %#Ix.\n", code, wParam, lParam );
/* Check if we're being asked to process a messages */ /* Check if we're being asked to process a messages */
if ( HC_ACTION != code ) if ( HC_ACTION != code )
...@@ -1943,7 +1944,7 @@ BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* l ...@@ -1943,7 +1944,7 @@ BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* l
} }
TRACE_(accel)("hAccel=%p, cAccelEntries=%d," TRACE_(accel)("hAccel=%p, cAccelEntries=%d,"
"msg->hwnd=%p, msg->message=%04x, wParam=%08lx, lParam=%08lx\n", "msg->hwnd=%p, msg->message=%04x, wParam=%#Ix, lParam=%#Ix\n",
hAccel, cAccelEntries, hAccel, cAccelEntries,
lpMsg->hwnd, lpMsg->message, lpMsg->wParam, lpMsg->lParam); lpMsg->hwnd, lpMsg->message, lpMsg->wParam, lpMsg->lParam);
for(i = 0; i < cAccelEntries; i++) for(i = 0; i < cAccelEntries; i++)
...@@ -1964,7 +1965,7 @@ BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* l ...@@ -1964,7 +1965,7 @@ BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* l
if(lpAccelTbl[i].fVirt & FVIRTKEY) if(lpAccelTbl[i].fVirt & FVIRTKEY)
{ {
INT mask = 0; INT mask = 0;
TRACE_(accel)("found accel for virt_key %04lx (scan %04x)\n", TRACE_(accel)("found accel for virt_key %Ix (scan %04x)\n",
lpMsg->wParam, HIWORD(lpMsg->lParam) & 0xff); lpMsg->wParam, HIWORD(lpMsg->lParam) & 0xff);
if(GetKeyState(VK_SHIFT) & 0x8000) mask |= FSHIFT; if(GetKeyState(VK_SHIFT) & 0x8000) mask |= FSHIFT;
if(GetKeyState(VK_CONTROL) & 0x8000) mask |= FCONTROL; if(GetKeyState(VK_CONTROL) & 0x8000) mask |= FCONTROL;
...@@ -2463,7 +2464,7 @@ HRESULT WINAPI OleCreate( ...@@ -2463,7 +2464,7 @@ HRESULT WINAPI OleCreate(
IUnknown * pUnk = NULL; IUnknown * pUnk = NULL;
IOleObject *pOleObject = NULL; IOleObject *pOleObject = NULL;
TRACE("(%s, %s, %d, %p, %p, %p, %p)\n", debugstr_guid(rclsid), TRACE("%s, %s, %ld, %p, %p, %p, %p.\n", debugstr_guid(rclsid),
debugstr_guid(riid), renderopt, pFormatEtc, pClientSite, pStg, ppvObj); debugstr_guid(riid), renderopt, pFormatEtc, pClientSite, pStg, ppvObj);
hres = CoCreateInstance(rclsid, 0, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, riid, (LPVOID*)&pUnk); hres = CoCreateInstance(rclsid, 0, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, riid, (LPVOID*)&pUnk);
...@@ -2488,7 +2489,7 @@ HRESULT WINAPI OleCreate( ...@@ -2488,7 +2489,7 @@ HRESULT WINAPI OleCreate(
{ {
TRACE("trying to set stg %p\n", pStg); TRACE("trying to set stg %p\n", pStg);
hres = IPersistStorage_InitNew(pPS, pStg); hres = IPersistStorage_InitNew(pPS, pStg);
TRACE("-- result 0x%08x\n", hres); TRACE("-- result %#lx\n", hres);
IPersistStorage_Release(pPS); IPersistStorage_Release(pPS);
} }
} }
...@@ -2497,7 +2498,7 @@ HRESULT WINAPI OleCreate( ...@@ -2497,7 +2498,7 @@ HRESULT WINAPI OleCreate(
{ {
TRACE("trying to set clientsite %p\n", pClientSite); TRACE("trying to set clientsite %p\n", pClientSite);
hres = IOleObject_SetClientSite(pOleObject, pClientSite); hres = IOleObject_SetClientSite(pOleObject, pClientSite);
TRACE("-- result 0x%08x\n", hres); TRACE("-- result %#lx\n", hres);
} }
if (pOleObject) if (pOleObject)
...@@ -2851,7 +2852,7 @@ HRESULT WINAPI OleCreateFromDataEx(IDataObject *data, REFIID iid, DWORD flags, ...@@ -2851,7 +2852,7 @@ HRESULT WINAPI OleCreateFromDataEx(IDataObject *data, REFIID iid, DWORD flags,
HRESULT hr; HRESULT hr;
UINT src_cf; UINT src_cf;
FIXME("(%p, %s, %08x, %08x, %d, %p, %p, %p, %p, %p, %p, %p): stub\n", FIXME("%p, %s, %#lx, %#lx, %ld, %p, %p, %p, %p, %p, %p, %p: stub\n",
data, debugstr_guid(iid), flags, renderopt, num_cache_fmts, adv_flags, cache_fmts, data, debugstr_guid(iid), flags, renderopt, num_cache_fmts, adv_flags, cache_fmts,
sink, conns, client_site, stg, obj); sink, conns, client_site, stg, obj);
...@@ -2884,7 +2885,7 @@ HRESULT WINAPI OleCreateFromData(IDataObject *data, REFIID iid, DWORD renderopt, ...@@ -2884,7 +2885,7 @@ HRESULT WINAPI OleCreateFromData(IDataObject *data, REFIID iid, DWORD renderopt,
HRESULT WINAPI OleCreateLinkFromData(IDataObject *data, REFIID iid, DWORD renderopt, FORMATETC *fmt, HRESULT WINAPI OleCreateLinkFromData(IDataObject *data, REFIID iid, DWORD renderopt, FORMATETC *fmt,
IOleClientSite *client_site, IStorage *stg, void **obj) IOleClientSite *client_site, IStorage *stg, void **obj)
{ {
FIXME("%p,%s,%08x,%p,%p,%p,%p: semi-stub\n", FIXME("%p, %s, %#lx, %p, %p, %p, %p: semi-stub\n",
data, debugstr_guid(iid), renderopt, fmt, client_site, stg, obj); data, debugstr_guid(iid), renderopt, fmt, client_site, stg, obj);
return OleCreateFromData(data, iid, renderopt, fmt, client_site, stg, obj); return OleCreateFromData(data, iid, renderopt, fmt, client_site, stg, obj);
} }
...@@ -2904,8 +2905,7 @@ HRESULT WINAPI OleCreateStaticFromData(IDataObject *data, REFIID iid, DWORD rend ...@@ -2904,8 +2905,7 @@ HRESULT WINAPI OleCreateStaticFromData(IDataObject *data, REFIID iid, DWORD rend
STGMEDIUM stgmedium; STGMEDIUM stgmedium;
LPOLESTR ole_typename; LPOLESTR ole_typename;
TRACE("(%p, %s, 0x%08x, %p, %p, %p, %p)\n", TRACE("%p, %s, %#lx, %p, %p, %p, %p.\n", data, debugstr_guid(iid), renderopt, fmt, client_site, stg, obj);
data, debugstr_guid(iid), renderopt, fmt, client_site, stg, obj);
if (!obj || !stg) if (!obj || !stg)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -3007,11 +3007,11 @@ HRESULT WINAPI OleCreateFromFileEx(REFCLSID clsid, const OLECHAR *filename, REFI ...@@ -3007,11 +3007,11 @@ HRESULT WINAPI OleCreateFromFileEx(REFCLSID clsid, const OLECHAR *filename, REFI
IOleCache *cache = NULL; IOleCache *cache = NULL;
ULONG i; ULONG i;
TRACE("cls %s, %s, iid %s, flags %d, render opts %d, num fmts %d, adv flags %p, fmts %p\n", debugstr_guid(clsid), TRACE("cls %s, %s, iid %s, flags %ld, render opts %ld, num fmts %ld, adv flags %p, fmts %p\n", debugstr_guid(clsid),
debugstr_w(filename), debugstr_guid(iid), flags, renderopt, num_fmts, adv_flags, fmts); debugstr_w(filename), debugstr_guid(iid), flags, renderopt, num_fmts, adv_flags, fmts);
TRACE("sink %p, conns %p, client site %p, storage %p, obj %p\n", sink, conns, client_site, stg, obj); TRACE("sink %p, conns %p, client site %p, storage %p, obj %p\n", sink, conns, client_site, stg, obj);
for (i = 0; i < num_fmts; i++) for (i = 0; i < num_fmts; i++)
TRACE("\t%d: fmt %s adv flags %d\n", i, debugstr_formatetc(fmts + i), adv_flags[i]); TRACE("\t%ld: fmt %s adv flags %ld\n", i, debugstr_formatetc(fmts + i), adv_flags[i]);
hr = CreateFileMoniker( filename, &mon ); hr = CreateFileMoniker( filename, &mon );
if (FAILED(hr)) return hr; if (FAILED(hr)) return hr;
......
...@@ -37,7 +37,7 @@ HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid, ...@@ -37,7 +37,7 @@ HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid,
DWORD renderopt, LPFORMATETC lpFormatEtc, DWORD renderopt, LPFORMATETC lpFormatEtc,
LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj) LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
{ {
FIXME("(%p,%p,%i,%p,%p,%p,%p), stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj); FIXME("%p, %p, %ld, %p, %p, %p, %p stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -77,7 +77,7 @@ HRESULT WINAPI DECLSPEC_HOTPATCH OleRegEnumFormatEtc ( ...@@ -77,7 +77,7 @@ HRESULT WINAPI DECLSPEC_HOTPATCH OleRegEnumFormatEtc (
DWORD dwDirection, DWORD dwDirection,
LPENUMFORMATETC* ppenumFormatetc) LPENUMFORMATETC* ppenumFormatetc)
{ {
FIXME("(%p, %d, %p), stub!\n", clsid, dwDirection, ppenumFormatetc); FIXME("%p, %ld, %p stub!\n", clsid, dwDirection, ppenumFormatetc);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -128,7 +128,7 @@ static HRESULT WINAPI EnumSTATDATA_Next(IEnumSTATDATA *iface, ULONG num, LPSTATD ...@@ -128,7 +128,7 @@ static HRESULT WINAPI EnumSTATDATA_Next(IEnumSTATDATA *iface, ULONG num, LPSTATD
DWORD count = 0; DWORD count = 0;
HRESULT hr = S_OK; HRESULT hr = S_OK;
TRACE("(%d, %p, %p)\n", num, data, fetched); TRACE("%p, %lu, %p, %p.\n", iface, num, data, fetched);
while(num--) while(num--)
{ {
...@@ -153,7 +153,7 @@ static HRESULT WINAPI EnumSTATDATA_Skip(IEnumSTATDATA *iface, ULONG num) ...@@ -153,7 +153,7 @@ static HRESULT WINAPI EnumSTATDATA_Skip(IEnumSTATDATA *iface, ULONG num)
{ {
EnumSTATDATA *This = impl_from_IEnumSTATDATA(iface); EnumSTATDATA *This = impl_from_IEnumSTATDATA(iface);
TRACE("(%d)\n", num); TRACE("%p, %lu.\n", iface, num);
if(This->index + num >= This->num_of_elems) if(This->index + num >= This->num_of_elems)
{ {
...@@ -309,7 +309,7 @@ static ULONG WINAPI OleAdviseHolderImpl_AddRef(IOleAdviseHolder *iface) ...@@ -309,7 +309,7 @@ static ULONG WINAPI OleAdviseHolderImpl_AddRef(IOleAdviseHolder *iface)
OleAdviseHolderImpl *This = impl_from_IOleAdviseHolder(iface); OleAdviseHolderImpl *This = impl_from_IOleAdviseHolder(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)->(ref=%d)\n", This, ref - 1); TRACE("%p, refcount %lu.\n", iface, ref);
return ref; return ref;
} }
...@@ -320,9 +320,9 @@ static ULONG WINAPI OleAdviseHolderImpl_AddRef(IOleAdviseHolder *iface) ...@@ -320,9 +320,9 @@ static ULONG WINAPI OleAdviseHolderImpl_AddRef(IOleAdviseHolder *iface)
static ULONG WINAPI OleAdviseHolderImpl_Release(IOleAdviseHolder *iface) static ULONG WINAPI OleAdviseHolderImpl_Release(IOleAdviseHolder *iface)
{ {
OleAdviseHolderImpl *This = impl_from_IOleAdviseHolder(iface); OleAdviseHolderImpl *This = impl_from_IOleAdviseHolder(iface);
ULONG ref; ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->(ref=%d)\n", This, This->ref);
ref = InterlockedDecrement(&This->ref); TRACE("%p, refcount %lu.\n", iface, ref);
if (ref == 0) OleAdviseHolderImpl_Destructor(This); if (ref == 0) OleAdviseHolderImpl_Destructor(This);
...@@ -382,7 +382,7 @@ static HRESULT WINAPI OleAdviseHolderImpl_Unadvise(IOleAdviseHolder *iface, ...@@ -382,7 +382,7 @@ static HRESULT WINAPI OleAdviseHolderImpl_Unadvise(IOleAdviseHolder *iface,
OleAdviseHolderImpl *This = impl_from_IOleAdviseHolder(iface); OleAdviseHolderImpl *This = impl_from_IOleAdviseHolder(iface);
DWORD index; DWORD index;
TRACE("(%p)->(%u)\n", This, dwConnection); TRACE("%p, %lu.\n", iface, dwConnection);
/* The connection number is 1 more than the index, see OleAdviseHolder_Advise */ /* The connection number is 1 more than the index, see OleAdviseHolder_Advise */
index = dwConnection - 1; index = dwConnection - 1;
...@@ -609,8 +609,9 @@ static HRESULT WINAPI DataAdviseHolder_QueryInterface(IDataAdviseHolder *iface, ...@@ -609,8 +609,9 @@ static HRESULT WINAPI DataAdviseHolder_QueryInterface(IDataAdviseHolder *iface,
static ULONG WINAPI DataAdviseHolder_AddRef(IDataAdviseHolder *iface) static ULONG WINAPI DataAdviseHolder_AddRef(IDataAdviseHolder *iface)
{ {
DataAdviseHolder *This = impl_from_IDataAdviseHolder(iface); DataAdviseHolder *This = impl_from_IDataAdviseHolder(iface);
TRACE("(%p) (ref=%d)\n", This, This->ref); ULONG ref = InterlockedIncrement(&This->ref);
return InterlockedIncrement(&This->ref); TRACE("%p, refcount %lu.\n", iface, ref);
return ref;
} }
/************************************************************************ /************************************************************************
...@@ -619,10 +620,10 @@ static ULONG WINAPI DataAdviseHolder_AddRef(IDataAdviseHolder *iface) ...@@ -619,10 +620,10 @@ static ULONG WINAPI DataAdviseHolder_AddRef(IDataAdviseHolder *iface)
static ULONG WINAPI DataAdviseHolder_Release(IDataAdviseHolder *iface) static ULONG WINAPI DataAdviseHolder_Release(IDataAdviseHolder *iface)
{ {
DataAdviseHolder *This = impl_from_IDataAdviseHolder(iface); DataAdviseHolder *This = impl_from_IDataAdviseHolder(iface);
ULONG ref; ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p) (ref=%d)\n", This, This->ref);
TRACE("%p, refcount %lu.\n", iface, ref);
ref = InterlockedDecrement(&This->ref);
if (ref==0) DataAdviseHolder_Destructor(This); if (ref==0) DataAdviseHolder_Destructor(This);
return ref; return ref;
...@@ -641,8 +642,7 @@ static HRESULT WINAPI DataAdviseHolder_Advise(IDataAdviseHolder *iface, ...@@ -641,8 +642,7 @@ static HRESULT WINAPI DataAdviseHolder_Advise(IDataAdviseHolder *iface,
STATDATA new_conn; STATDATA new_conn;
DataAdviseHolder *This = impl_from_IDataAdviseHolder(iface); DataAdviseHolder *This = impl_from_IDataAdviseHolder(iface);
TRACE("(%p)->(%p, %p, %08x, %p, %p)\n", This, pDataObject, pFetc, advf, TRACE("%p, %p, %p, %#lx, %p, %p.\n", iface, pDataObject, pFetc, advf, pAdvise, pdwConnection);
pAdvise, pdwConnection);
if (pdwConnection==NULL) if (pdwConnection==NULL)
return E_POINTER; return E_POINTER;
...@@ -709,7 +709,8 @@ static HRESULT WINAPI DataAdviseHolder_Unadvise(IDataAdviseHolder *iface, ...@@ -709,7 +709,8 @@ static HRESULT WINAPI DataAdviseHolder_Unadvise(IDataAdviseHolder *iface,
{ {
DataAdviseHolder *This = impl_from_IDataAdviseHolder(iface); DataAdviseHolder *This = impl_from_IDataAdviseHolder(iface);
DWORD index; DWORD index;
TRACE("(%p)->(%u)\n", This, dwConnection);
TRACE("%p, %lu.\n", iface, dwConnection);
/* The connection number is 1 more than the index, see DataAdviseHolder_Advise */ /* The connection number is 1 more than the index, see DataAdviseHolder_Advise */
index = dwConnection - 1; index = dwConnection - 1;
...@@ -756,7 +757,7 @@ static HRESULT WINAPI DataAdviseHolder_SendOnDataChange(IDataAdviseHolder *iface ...@@ -756,7 +757,7 @@ static HRESULT WINAPI DataAdviseHolder_SendOnDataChange(IDataAdviseHolder *iface
IEnumSTATDATA *pEnum; IEnumSTATDATA *pEnum;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%p, %08x, %08x)\n", iface, data_obj, dwReserved, advf); TRACE("%p, %p, %#lx, %#lx.\n", iface, data_obj, dwReserved, advf);
hr = IDataAdviseHolder_EnumAdvise(iface, &pEnum); hr = IDataAdviseHolder_EnumAdvise(iface, &pEnum);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
......
...@@ -95,7 +95,7 @@ static ULONG WINAPI PointerMonikerImpl_AddRef(IMoniker *iface) ...@@ -95,7 +95,7 @@ static ULONG WINAPI PointerMonikerImpl_AddRef(IMoniker *iface)
PointerMonikerImpl *moniker = impl_from_IMoniker(iface); PointerMonikerImpl *moniker = impl_from_IMoniker(iface);
ULONG refcount = InterlockedIncrement(&moniker->refcount); ULONG refcount = InterlockedIncrement(&moniker->refcount);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount; return refcount;
} }
...@@ -105,7 +105,7 @@ static ULONG WINAPI PointerMonikerImpl_Release(IMoniker *iface) ...@@ -105,7 +105,7 @@ static ULONG WINAPI PointerMonikerImpl_Release(IMoniker *iface)
PointerMonikerImpl *moniker = impl_from_IMoniker(iface); PointerMonikerImpl *moniker = impl_from_IMoniker(iface);
ULONG refcount = InterlockedDecrement(&moniker->refcount); ULONG refcount = InterlockedDecrement(&moniker->refcount);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -230,7 +230,7 @@ static HRESULT WINAPI ...@@ -230,7 +230,7 @@ static HRESULT WINAPI
PointerMonikerImpl_Reduce(IMoniker* iface, IBindCtx* pbc, DWORD dwReduceHowFar, PointerMonikerImpl_Reduce(IMoniker* iface, IBindCtx* pbc, DWORD dwReduceHowFar,
IMoniker** ppmkToLeft, IMoniker** ppmkReduced) IMoniker** ppmkToLeft, IMoniker** ppmkReduced)
{ {
TRACE("(%p,%p,%d,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced); TRACE("%p, %p, %ld, %p, %p.\n", iface, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
if (ppmkReduced==NULL) if (ppmkReduced==NULL)
return E_POINTER; return E_POINTER;
...@@ -509,7 +509,7 @@ static HRESULT WINAPI pointer_moniker_marshal_GetUnmarshalClass(IMarshal *iface, ...@@ -509,7 +509,7 @@ static HRESULT WINAPI pointer_moniker_marshal_GetUnmarshalClass(IMarshal *iface,
{ {
PointerMonikerImpl *moniker = impl_from_IMarshal(iface); PointerMonikerImpl *moniker = impl_from_IMarshal(iface);
TRACE("%p, %s, %p, %x, %p, %x, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext, TRACE("%p, %s, %p, %lx, %p, %lx, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext,
mshlflags, clsid); mshlflags, clsid);
return IMoniker_GetClassID(&moniker->IMoniker_iface, clsid); return IMoniker_GetClassID(&moniker->IMoniker_iface, clsid);
...@@ -520,7 +520,7 @@ static HRESULT WINAPI pointer_moniker_marshal_GetMarshalSizeMax(IMarshal *iface, ...@@ -520,7 +520,7 @@ static HRESULT WINAPI pointer_moniker_marshal_GetMarshalSizeMax(IMarshal *iface,
{ {
PointerMonikerImpl *moniker = impl_from_IMarshal(iface); PointerMonikerImpl *moniker = impl_from_IMarshal(iface);
TRACE("%p, %s, %p, %d, %p, %#x, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext, TRACE("%p, %s, %p, %ld, %p, %#lx, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext,
mshlflags, size); mshlflags, size);
return CoGetMarshalSizeMax(size, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags); return CoGetMarshalSizeMax(size, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags);
...@@ -531,7 +531,7 @@ static HRESULT WINAPI pointer_moniker_marshal_MarshalInterface(IMarshal *iface, ...@@ -531,7 +531,7 @@ static HRESULT WINAPI pointer_moniker_marshal_MarshalInterface(IMarshal *iface,
{ {
PointerMonikerImpl *moniker = impl_from_IMarshal(iface); PointerMonikerImpl *moniker = impl_from_IMarshal(iface);
TRACE("%p, %s, %p, %x, %p, %x.\n", stream, debugstr_guid(riid), pv, TRACE("%p, %s, %p, %lx, %p, %lx.\n", stream, debugstr_guid(riid), pv,
dwDestContext, pvDestContext, mshlflags); dwDestContext, pvDestContext, mshlflags);
return CoMarshalInterface(stream, &IID_IUnknown, moniker->pObject, dwDestContext, return CoMarshalInterface(stream, &IID_IUnknown, moniker->pObject, dwDestContext,
...@@ -550,7 +550,7 @@ static HRESULT WINAPI pointer_moniker_marshal_UnmarshalInterface(IMarshal *iface ...@@ -550,7 +550,7 @@ static HRESULT WINAPI pointer_moniker_marshal_UnmarshalInterface(IMarshal *iface
hr = CoUnmarshalInterface(stream, &IID_IUnknown, (void **)&object); hr = CoUnmarshalInterface(stream, &IID_IUnknown, (void **)&object);
if (FAILED(hr)) if (FAILED(hr))
{ {
ERR("Couldn't unmarshal moniker, hr = %#x.\n", hr); ERR("Couldn't unmarshal moniker, hr = %#lx.\n", hr);
return hr; return hr;
} }
...@@ -570,7 +570,7 @@ static HRESULT WINAPI pointer_moniker_marshal_ReleaseMarshalData(IMarshal *iface ...@@ -570,7 +570,7 @@ static HRESULT WINAPI pointer_moniker_marshal_ReleaseMarshalData(IMarshal *iface
static HRESULT WINAPI pointer_moniker_marshal_DisconnectObject(IMarshal *iface, DWORD reserved) static HRESULT WINAPI pointer_moniker_marshal_DisconnectObject(IMarshal *iface, DWORD reserved)
{ {
TRACE("%p, %#x.\n", iface, reserved); TRACE("%p, %#lx.\n", iface, reserved);
return S_OK; return S_OK;
} }
...@@ -699,7 +699,7 @@ static ULONG WINAPI ObjrefMonikerImpl_AddRef(IMoniker *iface) ...@@ -699,7 +699,7 @@ static ULONG WINAPI ObjrefMonikerImpl_AddRef(IMoniker *iface)
ObjrefMonikerImpl *moniker = objref_impl_from_IMoniker(iface); ObjrefMonikerImpl *moniker = objref_impl_from_IMoniker(iface);
ULONG refcount = InterlockedIncrement(&moniker->refcount); ULONG refcount = InterlockedIncrement(&moniker->refcount);
TRACE("%p, refcount %u\n", iface, refcount); TRACE("%p, refcount %lu\n", iface, refcount);
return refcount; return refcount;
} }
...@@ -709,7 +709,7 @@ static ULONG WINAPI ObjrefMonikerImpl_Release(IMoniker *iface) ...@@ -709,7 +709,7 @@ static ULONG WINAPI ObjrefMonikerImpl_Release(IMoniker *iface)
ObjrefMonikerImpl *moniker = objref_impl_from_IMoniker(iface); ObjrefMonikerImpl *moniker = objref_impl_from_IMoniker(iface);
ULONG refcount = InterlockedDecrement(&moniker->refcount); ULONG refcount = InterlockedDecrement(&moniker->refcount);
TRACE("%p, refcount %u\n", iface, refcount); TRACE("%p, refcount %lu\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -772,7 +772,7 @@ static HRESULT WINAPI ObjrefMonikerImpl_BindToStorage(IMoniker *iface, IBindCtx ...@@ -772,7 +772,7 @@ static HRESULT WINAPI ObjrefMonikerImpl_BindToStorage(IMoniker *iface, IBindCtx
static HRESULT WINAPI ObjrefMonikerImpl_Reduce(IMoniker *iface, IBindCtx *pbc, DWORD howfar, static HRESULT WINAPI ObjrefMonikerImpl_Reduce(IMoniker *iface, IBindCtx *pbc, DWORD howfar,
IMoniker **left, IMoniker **reduced) IMoniker **left, IMoniker **reduced)
{ {
FIXME("(%p,%p,%d,%p,%p): stub\n", iface, pbc, howfar, left, reduced); FIXME("%p, %p, %ld, %p, %p: stub\n", iface, pbc, howfar, left, reduced);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -930,7 +930,7 @@ static HRESULT WINAPI objref_moniker_marshal_GetUnmarshalClass(IMarshal *iface, ...@@ -930,7 +930,7 @@ static HRESULT WINAPI objref_moniker_marshal_GetUnmarshalClass(IMarshal *iface,
{ {
ObjrefMonikerImpl *moniker = objref_impl_from_IMarshal(iface); ObjrefMonikerImpl *moniker = objref_impl_from_IMarshal(iface);
TRACE("(%p,%s,%p,%08x,%p,%x,%p)\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext, TRACE("%p, %s, %p, %#lx, %p, %#lx, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext,
mshlflags, clsid); mshlflags, clsid);
return IMoniker_GetClassID(&moniker->IMoniker_iface, clsid); return IMoniker_GetClassID(&moniker->IMoniker_iface, clsid);
...@@ -941,7 +941,7 @@ static HRESULT WINAPI objref_moniker_marshal_GetMarshalSizeMax(IMarshal *iface, ...@@ -941,7 +941,7 @@ static HRESULT WINAPI objref_moniker_marshal_GetMarshalSizeMax(IMarshal *iface,
{ {
ObjrefMonikerImpl *moniker = objref_impl_from_IMarshal(iface); ObjrefMonikerImpl *moniker = objref_impl_from_IMarshal(iface);
TRACE("(%p,%s,%p,%08x,%p,%08x,%p)\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext, TRACE("%p, %s, %p, %#lx, %p, %#lx, %p.\n", iface, debugstr_guid(riid), pv, dwDestContext, pvDestContext,
mshlflags, size); mshlflags, size);
return CoGetMarshalSizeMax(size, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags); return CoGetMarshalSizeMax(size, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags);
...@@ -952,7 +952,7 @@ static HRESULT WINAPI objref_moniker_marshal_MarshalInterface(IMarshal *iface, I ...@@ -952,7 +952,7 @@ static HRESULT WINAPI objref_moniker_marshal_MarshalInterface(IMarshal *iface, I
{ {
ObjrefMonikerImpl *moniker = objref_impl_from_IMarshal(iface); ObjrefMonikerImpl *moniker = objref_impl_from_IMarshal(iface);
TRACE("(%p,%s,%p,%08x,%p,%08x)\n", stream, debugstr_guid(riid), pv, dwDestContext, pvDestContext, mshlflags); TRACE("%p, %s, %p, %#lx, %p, %#lx\n", stream, debugstr_guid(riid), pv, dwDestContext, pvDestContext, mshlflags);
return CoMarshalInterface(stream, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags); return CoMarshalInterface(stream, &IID_IUnknown, moniker->pObject, dwDestContext, pvDestContext, mshlflags);
} }
...@@ -969,7 +969,7 @@ static HRESULT WINAPI objref_moniker_marshal_UnmarshalInterface(IMarshal *iface, ...@@ -969,7 +969,7 @@ static HRESULT WINAPI objref_moniker_marshal_UnmarshalInterface(IMarshal *iface,
hr = CoUnmarshalInterface(stream, &IID_IUnknown, (void **)&object); hr = CoUnmarshalInterface(stream, &IID_IUnknown, (void **)&object);
if (FAILED(hr)) if (FAILED(hr))
{ {
ERR("Couldn't unmarshal moniker, hr = %#x.\n", hr); ERR("Couldn't unmarshal moniker, hr = %#lx.\n", hr);
return hr; return hr;
} }
...@@ -988,7 +988,7 @@ static HRESULT WINAPI objref_moniker_marshal_ReleaseMarshalData(IMarshal *iface, ...@@ -988,7 +988,7 @@ static HRESULT WINAPI objref_moniker_marshal_ReleaseMarshalData(IMarshal *iface,
static HRESULT WINAPI objref_moniker_marshal_DisconnectObject(IMarshal *iface, DWORD reserved) static HRESULT WINAPI objref_moniker_marshal_DisconnectObject(IMarshal *iface, DWORD reserved)
{ {
TRACE("(%p,%08x)\n", iface, reserved); TRACE("%p, %#lx.\n", iface, reserved);
return S_OK; return S_OK;
} }
......
...@@ -211,7 +211,7 @@ static ULONG WINAPI enum_stat_prop_stg_AddRef(IEnumSTATPROPSTG *iface) ...@@ -211,7 +211,7 @@ static ULONG WINAPI enum_stat_prop_stg_AddRef(IEnumSTATPROPSTG *iface)
struct enum_stat_prop_stg *penum = impl_from_IEnumSTATPROPSTG(iface); struct enum_stat_prop_stg *penum = impl_from_IEnumSTATPROPSTG(iface);
LONG refcount = InterlockedIncrement(&penum->refcount); LONG refcount = InterlockedIncrement(&penum->refcount);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount; return refcount;
} }
...@@ -221,7 +221,7 @@ static ULONG WINAPI enum_stat_prop_stg_Release(IEnumSTATPROPSTG *iface) ...@@ -221,7 +221,7 @@ static ULONG WINAPI enum_stat_prop_stg_Release(IEnumSTATPROPSTG *iface)
struct enum_stat_prop_stg *penum = impl_from_IEnumSTATPROPSTG(iface); struct enum_stat_prop_stg *penum = impl_from_IEnumSTATPROPSTG(iface);
LONG refcount = InterlockedDecrement(&penum->refcount); LONG refcount = InterlockedDecrement(&penum->refcount);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -239,7 +239,7 @@ static HRESULT WINAPI enum_stat_prop_stg_Next(IEnumSTATPROPSTG *iface, ULONG cel ...@@ -239,7 +239,7 @@ static HRESULT WINAPI enum_stat_prop_stg_Next(IEnumSTATPROPSTG *iface, ULONG cel
ULONG count = 0; ULONG count = 0;
WCHAR *name; WCHAR *name;
TRACE("%p, %u, %p, %p.\n", iface, celt, ret, fetched); TRACE("%p, %lu, %p, %p.\n", iface, celt, ret, fetched);
if (penum->current == ~0u) if (penum->current == ~0u)
penum->current = 0; penum->current = 0;
...@@ -267,7 +267,7 @@ static HRESULT WINAPI enum_stat_prop_stg_Next(IEnumSTATPROPSTG *iface, ULONG cel ...@@ -267,7 +267,7 @@ static HRESULT WINAPI enum_stat_prop_stg_Next(IEnumSTATPROPSTG *iface, ULONG cel
static HRESULT WINAPI enum_stat_prop_stg_Skip(IEnumSTATPROPSTG *iface, ULONG celt) static HRESULT WINAPI enum_stat_prop_stg_Skip(IEnumSTATPROPSTG *iface, ULONG celt)
{ {
FIXME("%p, %u.\n", iface, celt); FIXME("%p, %lu.\n", iface, celt);
return S_OK; return S_OK;
} }
...@@ -486,7 +486,7 @@ static HRESULT WINAPI IPropertyStorage_fnReadMultiple( ...@@ -486,7 +486,7 @@ static HRESULT WINAPI IPropertyStorage_fnReadMultiple(
HRESULT hr = S_OK; HRESULT hr = S_OK;
ULONG i; ULONG i;
TRACE("(%p, %d, %p, %p)\n", iface, cpspec, rgpspec, rgpropvar); TRACE("%p, %lu, %p, %p\n", iface, cpspec, rgpspec, rgpropvar);
if (!cpspec) if (!cpspec)
return S_FALSE; return S_FALSE;
...@@ -613,7 +613,7 @@ static HRESULT PropertyStorage_StringCopy(LPCSTR src, UINT srcCP, LPSTR *dst, UI ...@@ -613,7 +613,7 @@ static HRESULT PropertyStorage_StringCopy(LPCSTR src, UINT srcCP, LPSTR *dst, UI
HeapFree(GetProcessHeap(), 0, wideStr_tmp); HeapFree(GetProcessHeap(), 0, wideStr_tmp);
} }
} }
TRACE("returning 0x%08x (%s)\n", hr, TRACE("returning %#lx (%s)\n", hr,
dstCP == CP_UNICODE ? debugstr_w((LPCWSTR)*dst) : debugstr_a(*dst)); dstCP == CP_UNICODE ? debugstr_w((LPCWSTR)*dst) : debugstr_a(*dst));
return hr; return hr;
} }
...@@ -671,7 +671,7 @@ static HRESULT PropertyStorage_StorePropWithId(PropertyStorage_impl *This, ...@@ -671,7 +671,7 @@ static HRESULT PropertyStorage_StorePropWithId(PropertyStorage_impl *This,
case VT_VECTOR|VT_I1: case VT_VECTOR|VT_I1:
This->format = 1; This->format = 1;
} }
TRACE("Setting 0x%08x to type %d\n", propid, propvar->vt); TRACE("Setting %#lx to type %d\n", propid, propvar->vt);
if (prop) if (prop)
{ {
PropVariantClear(prop); PropVariantClear(prop);
...@@ -727,7 +727,7 @@ static HRESULT PropertyStorage_StoreNameWithId(PropertyStorage_impl *This, ...@@ -727,7 +727,7 @@ static HRESULT PropertyStorage_StoreNameWithId(PropertyStorage_impl *This,
if (strlen(name) >= MAX_VERSION_0_PROP_NAME_LENGTH) if (strlen(name) >= MAX_VERSION_0_PROP_NAME_LENGTH)
This->format = 1; This->format = 1;
} }
TRACE("Adding prop name %s, propid %d\n", TRACE("Adding prop name %s, propid %ld\n",
This->codePage == CP_UNICODE ? debugstr_w((LPCWSTR)name) : This->codePage == CP_UNICODE ? debugstr_w((LPCWSTR)name) :
debugstr_a(name), id); debugstr_a(name), id);
dictionary_insert(This->name_to_propid, name, UlongToPtr(id)); dictionary_insert(This->name_to_propid, name, UlongToPtr(id));
...@@ -750,7 +750,7 @@ static HRESULT WINAPI IPropertyStorage_fnWriteMultiple( ...@@ -750,7 +750,7 @@ static HRESULT WINAPI IPropertyStorage_fnWriteMultiple(
HRESULT hr = S_OK; HRESULT hr = S_OK;
ULONG i; ULONG i;
TRACE("(%p, %d, %p, %p)\n", iface, cpspec, rgpspec, rgpropvar); TRACE("%p, %lu, %p, %p.\n", iface, cpspec, rgpspec, rgpropvar);
if (cpspec && (!rgpspec || !rgpropvar)) if (cpspec && (!rgpspec || !rgpropvar))
return E_INVALIDARG; return E_INVALIDARG;
...@@ -849,7 +849,7 @@ static HRESULT WINAPI IPropertyStorage_fnDeleteMultiple( ...@@ -849,7 +849,7 @@ static HRESULT WINAPI IPropertyStorage_fnDeleteMultiple(
ULONG i; ULONG i;
HRESULT hr; HRESULT hr;
TRACE("(%p, %d, %p)\n", iface, cpspec, rgpspec); TRACE("%p, %ld, %p.\n", iface, cpspec, rgpspec);
if (cpspec && !rgpspec) if (cpspec && !rgpspec)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -895,7 +895,7 @@ static HRESULT WINAPI IPropertyStorage_fnReadPropertyNames( ...@@ -895,7 +895,7 @@ static HRESULT WINAPI IPropertyStorage_fnReadPropertyNames(
ULONG i; ULONG i;
HRESULT hr = S_FALSE; HRESULT hr = S_FALSE;
TRACE("(%p, %d, %p, %p)\n", iface, cpropid, rgpropid, rglpwstrName); TRACE("%p, %ld, %p, %p.\n", iface, cpropid, rgpropid, rglpwstrName);
if (cpropid && (!rgpropid || !rglpwstrName)) if (cpropid && (!rgpropid || !rglpwstrName))
return E_INVALIDARG; return E_INVALIDARG;
...@@ -935,7 +935,7 @@ static HRESULT WINAPI IPropertyStorage_fnWritePropertyNames( ...@@ -935,7 +935,7 @@ static HRESULT WINAPI IPropertyStorage_fnWritePropertyNames(
ULONG i; ULONG i;
HRESULT hr; HRESULT hr;
TRACE("(%p, %d, %p, %p)\n", iface, cpropid, rgpropid, rglpwstrName); TRACE("%p, %lu, %p, %p.\n", iface, cpropid, rgpropid, rglpwstrName);
if (cpropid && (!rgpropid || !rglpwstrName)) if (cpropid && (!rgpropid || !rglpwstrName))
return E_INVALIDARG; return E_INVALIDARG;
...@@ -968,7 +968,7 @@ static HRESULT WINAPI IPropertyStorage_fnDeletePropertyNames( ...@@ -968,7 +968,7 @@ static HRESULT WINAPI IPropertyStorage_fnDeletePropertyNames(
ULONG i; ULONG i;
HRESULT hr; HRESULT hr;
TRACE("(%p, %d, %p)\n", iface, cpropid, rgpropid); TRACE("%p, %ld, %p.\n", iface, cpropid, rgpropid);
if (cpropid && !rgpropid) if (cpropid && !rgpropid)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -1003,7 +1003,7 @@ static HRESULT WINAPI IPropertyStorage_fnCommit( ...@@ -1003,7 +1003,7 @@ static HRESULT WINAPI IPropertyStorage_fnCommit(
PropertyStorage_impl *This = impl_from_IPropertyStorage(iface); PropertyStorage_impl *This = impl_from_IPropertyStorage(iface);
HRESULT hr; HRESULT hr;
TRACE("(%p, 0x%08x)\n", iface, grfCommitFlags); TRACE("%p, %#lx.\n", iface, grfCommitFlags);
if (!(This->grfMode & STGM_READWRITE)) if (!(This->grfMode & STGM_READWRITE))
return STG_E_ACCESSDENIED; return STG_E_ACCESSDENIED;
...@@ -1149,7 +1149,7 @@ static void PropertyStorage_PropNameDestroy(void *k, void *d, void *extra) ...@@ -1149,7 +1149,7 @@ static void PropertyStorage_PropNameDestroy(void *k, void *d, void *extra)
static int PropertyStorage_PropCompare(const void *a, const void *b, static int PropertyStorage_PropCompare(const void *a, const void *b,
void *extra) void *extra)
{ {
TRACE("(%u, %u)\n", PtrToUlong(a), PtrToUlong(b)); TRACE("%lu, %lu.\n", PtrToUlong(a), PtrToUlong(b));
return PtrToUlong(a) - PtrToUlong(b); return PtrToUlong(a) - PtrToUlong(b);
} }
...@@ -1279,12 +1279,12 @@ static HRESULT propertystorage_read_scalar(PROPVARIANT *prop, const struct read_ ...@@ -1279,12 +1279,12 @@ static HRESULT propertystorage_read_scalar(PROPVARIANT *prop, const struct read_
case VT_INT: case VT_INT:
case VT_I4: case VT_I4:
hr = buffer_read_dword(buffer, offset, (DWORD *)&prop->lVal); hr = buffer_read_dword(buffer, offset, (DWORD *)&prop->lVal);
TRACE("Read long %d\n", prop->lVal); TRACE("Read long %ld\n", prop->lVal);
break; break;
case VT_UINT: case VT_UINT:
case VT_UI4: case VT_UI4:
hr = buffer_read_dword(buffer, offset, &prop->ulVal); hr = buffer_read_dword(buffer, offset, &prop->ulVal);
TRACE("Read ulong %d\n", prop->ulVal); TRACE("Read ulong %ld\n", prop->ulVal);
break; break;
case VT_I8: case VT_I8:
hr = buffer_read_uint64(buffer, offset, (ULARGE_INTEGER *)&prop->hVal); hr = buffer_read_uint64(buffer, offset, (ULARGE_INTEGER *)&prop->hVal);
...@@ -1398,7 +1398,7 @@ static HRESULT propertystorage_read_scalar(PROPVARIANT *prop, const struct read_ ...@@ -1398,7 +1398,7 @@ static HRESULT propertystorage_read_scalar(PROPVARIANT *prop, const struct read_
if (prop->blob.pBlobData) if (prop->blob.pBlobData)
{ {
hr = buffer_read_len(buffer, offset, prop->blob.pBlobData, count); hr = buffer_read_len(buffer, offset, prop->blob.pBlobData, count);
TRACE("Read blob value of size %d\n", count); TRACE("Read blob value of size %ld\n", count);
} }
else else
hr = STG_E_INSUFFICIENTMEMORY; hr = STG_E_INSUFFICIENTMEMORY;
...@@ -1583,7 +1583,7 @@ static HRESULT PropertyStorage_ReadHeaderFromStream(IStream *stm, ...@@ -1583,7 +1583,7 @@ static HRESULT PropertyStorage_ReadHeaderFromStream(IStream *stm,
{ {
if (count != sizeof(buf)) if (count != sizeof(buf))
{ {
WARN("read only %d\n", count); WARN("read only %ld\n", count);
hr = STG_E_INVALIDHEADER; hr = STG_E_INVALIDHEADER;
} }
else else
...@@ -1600,7 +1600,7 @@ static HRESULT PropertyStorage_ReadHeaderFromStream(IStream *stm, ...@@ -1600,7 +1600,7 @@ static HRESULT PropertyStorage_ReadHeaderFromStream(IStream *stm,
&hdr->reserved); &hdr->reserved);
} }
} }
TRACE("returning 0x%08x\n", hr); TRACE("returning %#lx\n", hr);
return hr; return hr;
} }
...@@ -1618,7 +1618,7 @@ static HRESULT PropertyStorage_ReadFmtIdOffsetFromStream(IStream *stm, ...@@ -1618,7 +1618,7 @@ static HRESULT PropertyStorage_ReadFmtIdOffsetFromStream(IStream *stm,
{ {
if (count != sizeof(buf)) if (count != sizeof(buf))
{ {
WARN("read only %d\n", count); WARN("read only %ld\n", count);
hr = STG_E_INVALIDHEADER; hr = STG_E_INVALIDHEADER;
} }
else else
...@@ -1629,7 +1629,7 @@ static HRESULT PropertyStorage_ReadFmtIdOffsetFromStream(IStream *stm, ...@@ -1629,7 +1629,7 @@ static HRESULT PropertyStorage_ReadFmtIdOffsetFromStream(IStream *stm,
&fmt->dwOffset); &fmt->dwOffset);
} }
} }
TRACE("returning 0x%08x\n", hr); TRACE("returning %#lx\n", hr);
return hr; return hr;
} }
...@@ -1647,7 +1647,7 @@ static HRESULT PropertyStorage_ReadSectionHeaderFromStream(IStream *stm, ...@@ -1647,7 +1647,7 @@ static HRESULT PropertyStorage_ReadSectionHeaderFromStream(IStream *stm,
{ {
if (count != sizeof(buf)) if (count != sizeof(buf))
{ {
WARN("read only %d\n", count); WARN("read only %ld\n", count);
hr = STG_E_INVALIDHEADER; hr = STG_E_INVALIDHEADER;
} }
else else
...@@ -1658,7 +1658,7 @@ static HRESULT PropertyStorage_ReadSectionHeaderFromStream(IStream *stm, ...@@ -1658,7 +1658,7 @@ static HRESULT PropertyStorage_ReadSectionHeaderFromStream(IStream *stm,
cProperties), &hdr->cProperties); cProperties), &hdr->cProperties);
} }
} }
TRACE("returning 0x%08x\n", hr); TRACE("returning %#lx\n", hr);
return hr; return hr;
} }
...@@ -1677,7 +1677,7 @@ static HRESULT PropertyStorage_ReadDictionary(PropertyStorage_impl *This, const ...@@ -1677,7 +1677,7 @@ static HRESULT PropertyStorage_ReadDictionary(PropertyStorage_impl *This, const
if (FAILED(hr = buffer_read_dword(buffer, offset, &numEntries))) if (FAILED(hr = buffer_read_dword(buffer, offset, &numEntries)))
return hr; return hr;
TRACE("Reading %d entries:\n", numEntries); TRACE("Reading %ld entries:\n", numEntries);
offset += sizeof(DWORD); offset += sizeof(DWORD);
...@@ -1697,7 +1697,7 @@ static HRESULT PropertyStorage_ReadDictionary(PropertyStorage_impl *This, const ...@@ -1697,7 +1697,7 @@ static HRESULT PropertyStorage_ReadDictionary(PropertyStorage_impl *This, const
if (FAILED(hr = buffer_test_offset(buffer, offset, This->codePage == CP_UNICODE ? if (FAILED(hr = buffer_test_offset(buffer, offset, This->codePage == CP_UNICODE ?
ALIGNED_LENGTH(cbEntry * sizeof(WCHAR), 3) : cbEntry))) ALIGNED_LENGTH(cbEntry * sizeof(WCHAR), 3) : cbEntry)))
{ {
WARN("Broken name length for entry %d.\n", i); WARN("Broken name length for entry %ld.\n", i);
return hr; return hr;
} }
...@@ -1709,11 +1709,11 @@ static HRESULT PropertyStorage_ReadDictionary(PropertyStorage_impl *This, const ...@@ -1709,11 +1709,11 @@ static HRESULT PropertyStorage_ReadDictionary(PropertyStorage_impl *This, const
if (ch) if (ch)
{ {
WARN("Dictionary entry name %d is not null-terminated.\n", i); WARN("Dictionary entry name %ld is not null-terminated.\n", i);
return E_FAIL; return E_FAIL;
} }
TRACE("Reading entry with ID %#x, %d chars, name %s.\n", propid, cbEntry, This->codePage == CP_UNICODE ? TRACE("Reading entry with ID %#lx, %ld chars, name %s.\n", propid, cbEntry, This->codePage == CP_UNICODE ?
debugstr_wn((WCHAR *)buffer->data, cbEntry) : debugstr_an((char *)buffer->data, cbEntry)); debugstr_wn((WCHAR *)buffer->data, cbEntry) : debugstr_an((char *)buffer->data, cbEntry));
hr = PropertyStorage_StoreNameWithId(This, (char *)buffer->data + offset, This->codePage, propid); hr = PropertyStorage_StoreNameWithId(This, (char *)buffer->data + offset, This->codePage, propid);
...@@ -1796,8 +1796,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This) ...@@ -1796,8 +1796,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
goto end; goto end;
if (fmtOffset.dwOffset > stat.cbSize.u.LowPart) if (fmtOffset.dwOffset > stat.cbSize.u.LowPart)
{ {
WARN("invalid offset %d (stream length is %d)\n", fmtOffset.dwOffset, WARN("invalid offset %ld (stream length is %ld)\n", fmtOffset.dwOffset, stat.cbSize.u.LowPart);
stat.cbSize.u.LowPart);
hr = STG_E_INVALIDHEADER; hr = STG_E_INVALIDHEADER;
goto end; goto end;
} }
...@@ -1814,7 +1813,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This) ...@@ -1814,7 +1813,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
/* The section size includes the section header, so check it */ /* The section size includes the section header, so check it */
if (sectionHdr.cbSection < sizeof(PROPERTYSECTIONHEADER)) if (sectionHdr.cbSection < sizeof(PROPERTYSECTIONHEADER))
{ {
WARN("section header too small, got %d\n", sectionHdr.cbSection); WARN("section header too small, got %ld\n", sectionHdr.cbSection);
hr = STG_E_INVALIDHEADER; hr = STG_E_INVALIDHEADER;
goto end; goto end;
} }
...@@ -1831,7 +1830,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This) ...@@ -1831,7 +1830,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
hr = IStream_Read(This->stm, read_buffer.data, read_buffer.size, &count); hr = IStream_Read(This->stm, read_buffer.data, read_buffer.size, &count);
if (FAILED(hr)) if (FAILED(hr))
goto end; goto end;
TRACE("Reading %d properties:\n", sectionHdr.cProperties); TRACE("Reading %ld properties:\n", sectionHdr.cProperties);
for (i = 0; SUCCEEDED(hr) && i < sectionHdr.cProperties; i++) for (i = 0; SUCCEEDED(hr) && i < sectionHdr.cProperties; i++)
{ {
PROPERTYIDOFFSET *idOffset = (PROPERTYIDOFFSET *)(read_buffer.data + PROPERTYIDOFFSET *idOffset = (PROPERTYIDOFFSET *)(read_buffer.data +
...@@ -1853,7 +1852,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This) ...@@ -1853,7 +1852,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
* later. * later.
*/ */
dictOffset = idOffset->dwOffset; dictOffset = idOffset->dwOffset;
TRACE("Dictionary offset is %d\n", dictOffset); TRACE("Dictionary offset is %ld\n", dictOffset);
} }
else else
{ {
...@@ -1864,8 +1863,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This) ...@@ -1864,8 +1863,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
idOffset->dwOffset - sizeof(PROPERTYSECTIONHEADER), This->codePage, idOffset->dwOffset - sizeof(PROPERTYSECTIONHEADER), This->codePage,
Allocate_CoTaskMemAlloc, NULL))) Allocate_CoTaskMemAlloc, NULL)))
{ {
TRACE("Read property with ID 0x%08x, type %d\n", TRACE("Read property with ID %#lx, type %d\n", idOffset->propid, prop.vt);
idOffset->propid, prop.vt);
switch(idOffset->propid) switch(idOffset->propid)
{ {
case PID_CODEPAGE: case PID_CODEPAGE:
...@@ -1901,7 +1899,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This) ...@@ -1901,7 +1899,7 @@ static HRESULT PropertyStorage_ReadFromStream(PropertyStorage_impl *This)
} }
if (!This->locale) if (!This->locale)
This->locale = LOCALE_SYSTEM_DEFAULT; This->locale = LOCALE_SYSTEM_DEFAULT;
TRACE("Code page is %d, locale is %d\n", This->codePage, This->locale); TRACE("Code page is %d, locale is %ld\n", This->codePage, This->locale);
if (dictOffset) if (dictOffset)
hr = PropertyStorage_ReadDictionary(This, &read_buffer, dictOffset - sizeof(PROPERTYSECTIONHEADER)); hr = PropertyStorage_ReadDictionary(This, &read_buffer, dictOffset - sizeof(PROPERTYSECTIONHEADER));
...@@ -2088,7 +2086,7 @@ static HRESULT PropertyStorage_WriteDictionaryToStream( ...@@ -2088,7 +2086,7 @@ static HRESULT PropertyStorage_WriteDictionaryToStream(
if (closure.bytesWritten % sizeof(DWORD)) if (closure.bytesWritten % sizeof(DWORD))
{ {
DWORD padding = sizeof(DWORD) - closure.bytesWritten % sizeof(DWORD); DWORD padding = sizeof(DWORD) - closure.bytesWritten % sizeof(DWORD);
TRACE("adding %d bytes of padding\n", padding); TRACE("adding %ld bytes of padding\n", padding);
*sectionOffset += padding; *sectionOffset += padding;
} }
...@@ -2109,7 +2107,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This, ...@@ -2109,7 +2107,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
assert(var); assert(var);
assert(sectionOffset); assert(sectionOffset);
TRACE("%p, %d, 0x%08x, (%d), (%d)\n", This, propNum, propid, var->vt, TRACE("%p, %ld, %#lx, %d, %ld.\n", This, propNum, propid, var->vt,
*sectionOffset); *sectionOffset);
seek.QuadPart = SECTIONHEADER_OFFSET + sizeof(PROPERTYSECTIONHEADER) + seek.QuadPart = SECTIONHEADER_OFFSET + sizeof(PROPERTYSECTIONHEADER) +
...@@ -2288,7 +2286,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This, ...@@ -2288,7 +2286,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
if (bytesWritten % sizeof(DWORD)) if (bytesWritten % sizeof(DWORD))
{ {
DWORD padding = sizeof(DWORD) - bytesWritten % sizeof(DWORD); DWORD padding = sizeof(DWORD) - bytesWritten % sizeof(DWORD);
TRACE("adding %d bytes of padding\n", padding); TRACE("adding %ld bytes of padding\n", padding);
*sectionOffset += padding; *sectionOffset += padding;
} }
} }
...@@ -2578,7 +2576,7 @@ static HRESULT PropertyStorage_ConstructEmpty(IStream *stm, ...@@ -2578,7 +2576,7 @@ static HRESULT PropertyStorage_ConstructEmpty(IStream *stm,
else else
ps->codePage = CP_UNICODE; ps->codePage = CP_UNICODE;
ps->locale = LOCALE_SYSTEM_DEFAULT; ps->locale = LOCALE_SYSTEM_DEFAULT;
TRACE("Code page is %d, locale is %d\n", ps->codePage, ps->locale); TRACE("Code page is %d, locale is %ld\n", ps->codePage, ps->locale);
*pps = &ps->IPropertyStorage_iface; *pps = &ps->IPropertyStorage_iface;
TRACE("PropertyStorage %p constructed\n", ps); TRACE("PropertyStorage %p constructed\n", ps);
hr = S_OK; hr = S_OK;
...@@ -2626,7 +2624,7 @@ static ULONG WINAPI enum_stat_propset_stg_AddRef(IEnumSTATPROPSETSTG *iface) ...@@ -2626,7 +2624,7 @@ static ULONG WINAPI enum_stat_propset_stg_AddRef(IEnumSTATPROPSETSTG *iface)
struct enum_stat_propset_stg *psenum = impl_from_IEnumSTATPROPSETSTG(iface); struct enum_stat_propset_stg *psenum = impl_from_IEnumSTATPROPSETSTG(iface);
LONG refcount = InterlockedIncrement(&psenum->refcount); LONG refcount = InterlockedIncrement(&psenum->refcount);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount; return refcount;
} }
...@@ -2636,7 +2634,7 @@ static ULONG WINAPI enum_stat_propset_stg_Release(IEnumSTATPROPSETSTG *iface) ...@@ -2636,7 +2634,7 @@ static ULONG WINAPI enum_stat_propset_stg_Release(IEnumSTATPROPSETSTG *iface)
struct enum_stat_propset_stg *psenum = impl_from_IEnumSTATPROPSETSTG(iface); struct enum_stat_propset_stg *psenum = impl_from_IEnumSTATPROPSETSTG(iface);
LONG refcount = InterlockedDecrement(&psenum->refcount); LONG refcount = InterlockedDecrement(&psenum->refcount);
TRACE("%p, refcount %u.\n", iface, refcount); TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount) if (!refcount)
{ {
...@@ -2653,7 +2651,7 @@ static HRESULT WINAPI enum_stat_propset_stg_Next(IEnumSTATPROPSETSTG *iface, ULO ...@@ -2653,7 +2651,7 @@ static HRESULT WINAPI enum_stat_propset_stg_Next(IEnumSTATPROPSETSTG *iface, ULO
struct enum_stat_propset_stg *psenum = impl_from_IEnumSTATPROPSETSTG(iface); struct enum_stat_propset_stg *psenum = impl_from_IEnumSTATPROPSETSTG(iface);
ULONG count = 0; ULONG count = 0;
TRACE("%p, %u, %p, %p.\n", iface, celt, ret, fetched); TRACE("%p, %lu, %p, %p.\n", iface, celt, ret, fetched);
if (psenum->current == ~0u) if (psenum->current == ~0u)
psenum->current = 0; psenum->current = 0;
...@@ -2669,7 +2667,7 @@ static HRESULT WINAPI enum_stat_propset_stg_Next(IEnumSTATPROPSETSTG *iface, ULO ...@@ -2669,7 +2667,7 @@ static HRESULT WINAPI enum_stat_propset_stg_Next(IEnumSTATPROPSETSTG *iface, ULO
static HRESULT WINAPI enum_stat_propset_stg_Skip(IEnumSTATPROPSETSTG *iface, ULONG celt) static HRESULT WINAPI enum_stat_propset_stg_Skip(IEnumSTATPROPSETSTG *iface, ULONG celt)
{ {
FIXME("%p, %u.\n", iface, celt); FIXME("%p, %lu.\n", iface, celt);
return S_OK; return S_OK;
} }
...@@ -2840,7 +2838,7 @@ static HRESULT WINAPI IPropertySetStorage_fnCreate( ...@@ -2840,7 +2838,7 @@ static HRESULT WINAPI IPropertySetStorage_fnCreate(
IStream *stm = NULL; IStream *stm = NULL;
HRESULT r; HRESULT r;
TRACE("%p %s %08x %08x %p\n", This, debugstr_guid(rfmtid), grfFlags, TRACE("%p, %s %#lx, %#lx, %p.\n", This, debugstr_guid(rfmtid), grfFlags,
grfMode, ppprstg); grfMode, ppprstg);
/* be picky */ /* be picky */
...@@ -2879,7 +2877,7 @@ static HRESULT WINAPI IPropertySetStorage_fnCreate( ...@@ -2879,7 +2877,7 @@ static HRESULT WINAPI IPropertySetStorage_fnCreate(
IStream_Release( stm ); IStream_Release( stm );
end: end:
TRACE("returning 0x%08x\n", r); TRACE("returning %#lx\n", r);
return r; return r;
} }
...@@ -2897,7 +2895,7 @@ static HRESULT WINAPI IPropertySetStorage_fnOpen( ...@@ -2897,7 +2895,7 @@ static HRESULT WINAPI IPropertySetStorage_fnOpen(
WCHAR name[CCH_MAX_PROPSTG_NAME + 1]; WCHAR name[CCH_MAX_PROPSTG_NAME + 1];
HRESULT r; HRESULT r;
TRACE("%p %s %08x %p\n", This, debugstr_guid(rfmtid), grfMode, ppprstg); TRACE("%p, %s, %#lx, %p.\n", This, debugstr_guid(rfmtid), grfMode, ppprstg);
/* be picky */ /* be picky */
if (grfMode != (STGM_READWRITE|STGM_SHARE_EXCLUSIVE) && if (grfMode != (STGM_READWRITE|STGM_SHARE_EXCLUSIVE) &&
...@@ -2926,7 +2924,7 @@ static HRESULT WINAPI IPropertySetStorage_fnOpen( ...@@ -2926,7 +2924,7 @@ static HRESULT WINAPI IPropertySetStorage_fnOpen(
IStream_Release( stm ); IStream_Release( stm );
end: end:
TRACE("returning 0x%08x\n", r); TRACE("returning %#lx\n", r);
return r; return r;
} }
...@@ -3205,7 +3203,7 @@ SERIALIZEDPROPERTYVALUE* WINAPI StgConvertVariantToProperty(const PROPVARIANT *p ...@@ -3205,7 +3203,7 @@ SERIALIZEDPROPERTYVALUE* WINAPI StgConvertVariantToProperty(const PROPVARIANT *p
USHORT CodePage, SERIALIZEDPROPERTYVALUE *pprop, ULONG *pcb, PROPID pid, USHORT CodePage, SERIALIZEDPROPERTYVALUE *pprop, ULONG *pcb, PROPID pid,
BOOLEAN fReserved, ULONG *pcIndirect) BOOLEAN fReserved, ULONG *pcIndirect)
{ {
FIXME("%p,%d,%p,%p,%d,%d,%p\n", pvar, CodePage, pprop, pcb, pid, fReserved, pcIndirect); FIXME("%p, %d, %p, %p, %ld, %d, %p.\n", pvar, CodePage, pprop, pcb, pid, fReserved, pcIndirect);
return NULL; return NULL;
} }
...@@ -3217,7 +3215,7 @@ HRESULT WINAPI StgCreatePropStg(IUnknown *unk, REFFMTID fmt, const CLSID *clsid, ...@@ -3217,7 +3215,7 @@ HRESULT WINAPI StgCreatePropStg(IUnknown *unk, REFFMTID fmt, const CLSID *clsid,
IStream *stm; IStream *stm;
HRESULT r; HRESULT r;
TRACE("%p %s %s %08x %d %p\n", unk, debugstr_guid(fmt), debugstr_guid(clsid), flags, reserved, prop_stg); TRACE("%p, %s, %s, %#lx, %ld, %p.\n", unk, debugstr_guid(fmt), debugstr_guid(clsid), flags, reserved, prop_stg);
if (!fmt || reserved) if (!fmt || reserved)
{ {
...@@ -3251,7 +3249,7 @@ HRESULT WINAPI StgCreatePropStg(IUnknown *unk, REFFMTID fmt, const CLSID *clsid, ...@@ -3251,7 +3249,7 @@ HRESULT WINAPI StgCreatePropStg(IUnknown *unk, REFFMTID fmt, const CLSID *clsid,
} }
end: end:
TRACE("returning 0x%08x\n", r); TRACE("returning %#lx\n", r);
return r; return r;
} }
...@@ -3262,7 +3260,7 @@ HRESULT WINAPI StgOpenPropStg(IUnknown *unk, REFFMTID fmt, DWORD flags, ...@@ -3262,7 +3260,7 @@ HRESULT WINAPI StgOpenPropStg(IUnknown *unk, REFFMTID fmt, DWORD flags,
IStream *stm; IStream *stm;
HRESULT r; HRESULT r;
TRACE("%p %s %08x %d %p\n", unk, debugstr_guid(fmt), flags, reserved, prop_stg); TRACE("%p, %s, %#lx, %ld, %p.\n", unk, debugstr_guid(fmt), flags, reserved, prop_stg);
if (!fmt || reserved) if (!fmt || reserved)
{ {
...@@ -3296,6 +3294,6 @@ HRESULT WINAPI StgOpenPropStg(IUnknown *unk, REFFMTID fmt, DWORD flags, ...@@ -3296,6 +3294,6 @@ HRESULT WINAPI StgOpenPropStg(IUnknown *unk, REFFMTID fmt, DWORD flags,
} }
end: end:
TRACE("returning 0x%08x\n", r); TRACE("returning %#lx\n", r);
return r; return r;
} }
...@@ -136,8 +136,7 @@ static HRESULT WINAPI StgStreamImpl_Read( ...@@ -136,8 +136,7 @@ static HRESULT WINAPI StgStreamImpl_Read(
ULONG bytesReadBuffer; ULONG bytesReadBuffer;
HRESULT res; HRESULT res;
TRACE("(%p, %p, %d, %p)\n", TRACE("%p, %p, %lu, %p.\n", iface, pv, cb, pcbRead);
iface, pv, cb, pcbRead);
if (!This->parentStorage) if (!This->parentStorage)
{ {
...@@ -167,7 +166,7 @@ static HRESULT WINAPI StgStreamImpl_Read( ...@@ -167,7 +166,7 @@ static HRESULT WINAPI StgStreamImpl_Read(
This->currentPosition.QuadPart += *pcbRead; This->currentPosition.QuadPart += *pcbRead;
} }
TRACE("<-- %08x\n", res); TRACE("<-- %#lx\n", res);
return res; return res;
} }
...@@ -192,8 +191,7 @@ static HRESULT WINAPI StgStreamImpl_Write( ...@@ -192,8 +191,7 @@ static HRESULT WINAPI StgStreamImpl_Write(
ULONG bytesWritten = 0; ULONG bytesWritten = 0;
HRESULT res; HRESULT res;
TRACE("(%p, %p, %d, %p)\n", TRACE("%p, %p, %lu, %p.\n", iface, pv, cb, pcbWritten);
iface, pv, cb, pcbWritten);
/* /*
* Do we have permission to write to this stream? * Do we have permission to write to this stream?
...@@ -204,7 +202,7 @@ static HRESULT WINAPI StgStreamImpl_Write( ...@@ -204,7 +202,7 @@ static HRESULT WINAPI StgStreamImpl_Write(
case STGM_READWRITE: case STGM_READWRITE:
break; break;
default: default:
WARN("access denied by flags: 0x%x\n", STGM_ACCESS_MODE(This->grfMode)); WARN("access denied by flags: %#lx\n", STGM_ACCESS_MODE(This->grfMode));
return STG_E_ACCESSDENIED; return STG_E_ACCESSDENIED;
} }
...@@ -250,7 +248,7 @@ static HRESULT WINAPI StgStreamImpl_Write( ...@@ -250,7 +248,7 @@ static HRESULT WINAPI StgStreamImpl_Write(
if (SUCCEEDED(res)) if (SUCCEEDED(res))
res = StorageBaseImpl_Flush(This->parentStorage); res = StorageBaseImpl_Flush(This->parentStorage);
TRACE("<-- %08x, written %u\n", res, *pcbWritten); TRACE("<-- %#lx, written %lu\n", res, *pcbWritten);
return res; return res;
} }
...@@ -274,8 +272,7 @@ static HRESULT WINAPI StgStreamImpl_Seek( ...@@ -274,8 +272,7 @@ static HRESULT WINAPI StgStreamImpl_Seek(
DirEntry currentEntry; DirEntry currentEntry;
HRESULT hr; HRESULT hr;
TRACE("(%p, %d, %d, %p)\n", TRACE("%p, %ld, %ld, %p.\n", iface, dlibMove.u.LowPart, dwOrigin, plibNewPosition);
iface, dlibMove.u.LowPart, dwOrigin, plibNewPosition);
/* /*
* fail if the stream has no parent (as does windows) * fail if the stream has no parent (as does windows)
...@@ -316,7 +313,7 @@ static HRESULT WINAPI StgStreamImpl_Seek( ...@@ -316,7 +313,7 @@ static HRESULT WINAPI StgStreamImpl_Seek(
*plibNewPosition = currentEntry.size; *plibNewPosition = currentEntry.size;
break; break;
default: default:
WARN("invalid dwOrigin %d\n", dwOrigin); WARN("invalid dwOrigin %ld\n", dwOrigin);
return STG_E_INVALIDFUNCTION; return STG_E_INVALIDFUNCTION;
} }
...@@ -345,7 +342,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize( ...@@ -345,7 +342,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
HRESULT hr; HRESULT hr;
TRACE("(%p, %d)\n", iface, libNewSize.u.LowPart); TRACE("%p, %ld.\n", iface, libNewSize.u.LowPart);
if(!This->parentStorage) if(!This->parentStorage)
{ {
...@@ -358,7 +355,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize( ...@@ -358,7 +355,7 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
*/ */
if (libNewSize.u.HighPart != 0) if (libNewSize.u.HighPart != 0)
{ {
WARN("invalid value for libNewSize.u.HighPart %d\n", libNewSize.u.HighPart); WARN("invalid value for libNewSize.u.HighPart %ld\n", libNewSize.u.HighPart);
return STG_E_INVALIDFUNCTION; return STG_E_INVALIDFUNCTION;
} }
...@@ -400,8 +397,7 @@ static HRESULT WINAPI StgStreamImpl_CopyTo( ...@@ -400,8 +397,7 @@ static HRESULT WINAPI StgStreamImpl_CopyTo(
ULARGE_INTEGER totalBytesRead; ULARGE_INTEGER totalBytesRead;
ULARGE_INTEGER totalBytesWritten; ULARGE_INTEGER totalBytesWritten;
TRACE("(%p, %p, %d, %p, %p)\n", TRACE("%p, %p, %ld, %p, %p.\n", iface, pstm, cb.u.LowPart, pcbRead, pcbWritten);
iface, pstm, cb.u.LowPart, pcbRead, pcbWritten);
/* /*
* Sanity check * Sanity check
...@@ -547,7 +543,7 @@ static HRESULT WINAPI StgStreamImpl_Stat( ...@@ -547,7 +543,7 @@ static HRESULT WINAPI StgStreamImpl_Stat(
DirEntry currentEntry; DirEntry currentEntry;
HRESULT hr; HRESULT hr;
TRACE("%p %p %d\n", This, pstatstg, grfStatFlag); TRACE("%p, %p, %#lx.\n", This, pstatstg, grfStatFlag);
/* /*
* if stream has no parent, return STG_E_REVERTED * if stream has no parent, return STG_E_REVERTED
......
...@@ -292,7 +292,7 @@ static HRESULT validateSTGM(DWORD stgm) ...@@ -292,7 +292,7 @@ static HRESULT validateSTGM(DWORD stgm)
if (stgm&~STGM_KNOWN_FLAGS) if (stgm&~STGM_KNOWN_FLAGS)
{ {
ERR("unknown flags %08x\n", stgm); ERR("unknown flags %#lx\n", stgm);
return E_FAIL; return E_FAIL;
} }
...@@ -463,7 +463,7 @@ static ULONG WINAPI directwriterlock_Release(IDirectWriterLock *iface) ...@@ -463,7 +463,7 @@ static ULONG WINAPI directwriterlock_Release(IDirectWriterLock *iface)
static HRESULT WINAPI directwriterlock_WaitForWriteAccess(IDirectWriterLock *iface, DWORD timeout) static HRESULT WINAPI directwriterlock_WaitForWriteAccess(IDirectWriterLock *iface, DWORD timeout)
{ {
StorageBaseImpl *This = impl_from_IDirectWriterLock(iface); StorageBaseImpl *This = impl_from_IDirectWriterLock(iface);
FIXME("(%p)->(%d): stub\n", This, timeout); FIXME("%p, %ld: stub\n", This, timeout);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -995,7 +995,7 @@ static HRESULT IEnumSTATSTGImpl_GetNextRef( ...@@ -995,7 +995,7 @@ static HRESULT IEnumSTATSTGImpl_GetNextRef(
memcpy(This->name, result_name, sizeof(result_name)); memcpy(This->name, result_name, sizeof(result_name));
} }
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -1013,7 +1013,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Next( ...@@ -1013,7 +1013,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Next(
DirRef currentSearchNode; DirRef currentSearchNode;
HRESULT hr=S_OK; HRESULT hr=S_OK;
TRACE("%p,%u,%p,%p\n", iface, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", iface, celt, rgelt, pceltFetched);
if ( (rgelt==0) || ( (celt!=1) && (pceltFetched==0) ) ) if ( (rgelt==0) || ( (celt!=1) && (pceltFetched==0) ) )
return E_INVALIDARG; return E_INVALIDARG;
...@@ -1073,7 +1073,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Next( ...@@ -1073,7 +1073,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Next(
if (SUCCEEDED(hr) && *pceltFetched != celt) if (SUCCEEDED(hr) && *pceltFetched != celt)
hr = S_FALSE; hr = S_FALSE;
TRACE("<-- %08x (asked %u, got %u)\n", hr, celt, *pceltFetched); TRACE("<-- %#lx (asked %lu, got %lu)\n", hr, celt, *pceltFetched);
return hr; return hr;
} }
...@@ -1088,7 +1088,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Skip( ...@@ -1088,7 +1088,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Skip(
DirRef currentSearchNode; DirRef currentSearchNode;
HRESULT hr=S_OK; HRESULT hr=S_OK;
TRACE("%p,%u\n", iface, celt); TRACE("%p, %lu.\n", iface, celt);
if (This->parentStorage->reverted) if (This->parentStorage->reverted)
{ {
...@@ -1109,7 +1109,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Skip( ...@@ -1109,7 +1109,7 @@ static HRESULT WINAPI IEnumSTATSTGImpl_Skip(
if (SUCCEEDED(hr) && objectFetched != celt) if (SUCCEEDED(hr) && objectFetched != celt)
return S_FALSE; return S_FALSE;
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -1282,7 +1282,7 @@ static ULONG WINAPI StorageBaseImpl_AddRef( ...@@ -1282,7 +1282,7 @@ static ULONG WINAPI StorageBaseImpl_AddRef(
StorageBaseImpl *This = impl_from_IStorage(iface); StorageBaseImpl *This = impl_from_IStorage(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p) AddRef to %d\n", This, ref); TRACE("%p, refcount %lu.\n", iface, ref);
return ref; return ref;
} }
...@@ -1302,7 +1302,7 @@ static ULONG WINAPI StorageBaseImpl_Release( ...@@ -1302,7 +1302,7 @@ static ULONG WINAPI StorageBaseImpl_Release(
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p) ReleaseRef to %d\n", This, ref); TRACE("%p, refcount %lu.\n", iface, ref);
if (ref == 0) if (ref == 0)
{ {
...@@ -1447,7 +1447,7 @@ static HRESULT StorageBaseImpl_CopyChildEntryTo(StorageBaseImpl *This, ...@@ -1447,7 +1447,7 @@ static HRESULT StorageBaseImpl_CopyChildEntryTo(StorageBaseImpl *This,
hr = StorageBaseImpl_CopyChildEntryTo( This, data.rightChild, skip_storage, hr = StorageBaseImpl_CopyChildEntryTo( This, data.rightChild, skip_storage,
skip_stream, snbExclude, pstgDest ); skip_stream, snbExclude, pstgDest );
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -1455,7 +1455,7 @@ static BOOL StorageBaseImpl_IsStreamOpen(StorageBaseImpl * stg, DirRef streamEnt ...@@ -1455,7 +1455,7 @@ static BOOL StorageBaseImpl_IsStreamOpen(StorageBaseImpl * stg, DirRef streamEnt
{ {
StgStreamImpl *strm; StgStreamImpl *strm;
TRACE("%p,%d\n", stg, streamEntry); TRACE("%p, %ld.\n", stg, streamEntry);
LIST_FOR_EACH_ENTRY(strm, &stg->strmHead, StgStreamImpl, StrmListEntry) LIST_FOR_EACH_ENTRY(strm, &stg->strmHead, StgStreamImpl, StrmListEntry)
{ {
...@@ -1472,7 +1472,7 @@ static BOOL StorageBaseImpl_IsStorageOpen(StorageBaseImpl * stg, DirRef storageE ...@@ -1472,7 +1472,7 @@ static BOOL StorageBaseImpl_IsStorageOpen(StorageBaseImpl * stg, DirRef storageE
{ {
StorageInternalImpl *childstg; StorageInternalImpl *childstg;
TRACE("%p,%d\n", stg, storageEntry); TRACE("%p, %ld.\n", stg, storageEntry);
LIST_FOR_EACH_ENTRY(childstg, &stg->storageHead, StorageInternalImpl, ParentListEntry) LIST_FOR_EACH_ENTRY(childstg, &stg->storageHead, StorageInternalImpl, ParentListEntry)
{ {
...@@ -1506,8 +1506,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStream( ...@@ -1506,8 +1506,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStream(
DirRef streamEntryRef; DirRef streamEntryRef;
HRESULT res = STG_E_UNKNOWN; HRESULT res = STG_E_UNKNOWN;
TRACE("(%p, %s, %p, %x, %d, %p)\n", TRACE("%p, %s, %p, %#lx, %ld, %p.\n", iface, debugstr_w(pwcsName), reserved1, grfMode, reserved2, ppstm);
iface, debugstr_w(pwcsName), reserved1, grfMode, reserved2, ppstm);
if ( (pwcsName==NULL) || (ppstm==0) ) if ( (pwcsName==NULL) || (ppstm==0) )
{ {
...@@ -1595,7 +1594,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStream( ...@@ -1595,7 +1594,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStream(
end: end:
if (res == S_OK) if (res == S_OK)
TRACE("<-- IStream %p\n", *ppstm); TRACE("<-- IStream %p\n", *ppstm);
TRACE("<-- %08x\n", res); TRACE("<-- %#lx\n", res);
return res; return res;
} }
...@@ -1622,8 +1621,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage( ...@@ -1622,8 +1621,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage(
DirRef storageEntryRef; DirRef storageEntryRef;
HRESULT res = STG_E_UNKNOWN; HRESULT res = STG_E_UNKNOWN;
TRACE("(%p, %s, %p, %x, %p, %d, %p)\n", TRACE("%p, %s, %p, %#lx, %p, %ld, %p.\n", iface, debugstr_w(pwcsName), pstgPriority,
iface, debugstr_w(pwcsName), pstgPriority,
grfMode, snbExclude, reserved, ppstg); grfMode, snbExclude, reserved, ppstg);
if ((pwcsName==NULL) || (ppstg==0) ) if ((pwcsName==NULL) || (ppstg==0) )
...@@ -1732,7 +1730,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage( ...@@ -1732,7 +1730,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage(
res = STG_E_FILENOTFOUND; res = STG_E_FILENOTFOUND;
end: end:
TRACE("<-- %08x\n", res); TRACE("<-- %#lx\n", res);
return res; return res;
} }
...@@ -1754,8 +1752,7 @@ static HRESULT WINAPI StorageBaseImpl_EnumElements( ...@@ -1754,8 +1752,7 @@ static HRESULT WINAPI StorageBaseImpl_EnumElements(
StorageBaseImpl *This = impl_from_IStorage(iface); StorageBaseImpl *This = impl_from_IStorage(iface);
IEnumSTATSTGImpl* newEnum; IEnumSTATSTGImpl* newEnum;
TRACE("(%p, %d, %p, %d, %p)\n", TRACE("%p, %ld, %p, %ld, %p.\n", iface, reserved1, reserved2, reserved3, ppenum);
iface, reserved1, reserved2, reserved3, ppenum);
if (!ppenum) if (!ppenum)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -1792,8 +1789,7 @@ static HRESULT WINAPI StorageBaseImpl_Stat( ...@@ -1792,8 +1789,7 @@ static HRESULT WINAPI StorageBaseImpl_Stat(
DirEntry currentEntry; DirEntry currentEntry;
HRESULT res = STG_E_UNKNOWN; HRESULT res = STG_E_UNKNOWN;
TRACE("(%p, %p, %x)\n", TRACE("%p, %p, %#lx.\n", iface, pstatstg, grfStatFlag);
iface, pstatstg, grfStatFlag);
if (!pstatstg) if (!pstatstg)
{ {
...@@ -1827,9 +1823,9 @@ static HRESULT WINAPI StorageBaseImpl_Stat( ...@@ -1827,9 +1823,9 @@ static HRESULT WINAPI StorageBaseImpl_Stat(
end: end:
if (res == S_OK) if (res == S_OK)
{ {
TRACE("<-- STATSTG: pwcsName: %s, type: %d, cbSize.Low/High: %d/%d, grfMode: %08x, grfLocksSupported: %d, grfStateBits: %08x\n", debugstr_w(pstatstg->pwcsName), pstatstg->type, pstatstg->cbSize.u.LowPart, pstatstg->cbSize.u.HighPart, pstatstg->grfMode, pstatstg->grfLocksSupported, pstatstg->grfStateBits); TRACE("<-- STATSTG: pwcsName: %s, type: %ld, cbSize.Low/High: %ld/%ld, grfMode: %#lx, grfLocksSupported: %ld, grfStateBits: %#lx\n", debugstr_w(pstatstg->pwcsName), pstatstg->type, pstatstg->cbSize.u.LowPart, pstatstg->cbSize.u.HighPart, pstatstg->grfMode, pstatstg->grfLocksSupported, pstatstg->grfStateBits);
} }
TRACE("<-- %08x\n", res); TRACE("<-- %#lx\n", res);
return res; return res;
} }
...@@ -1935,9 +1931,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream( ...@@ -1935,9 +1931,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
DirRef currentEntryRef, newStreamEntryRef; DirRef currentEntryRef, newStreamEntryRef;
HRESULT hr; HRESULT hr;
TRACE("(%p, %s, %x, %d, %d, %p)\n", TRACE("%p, %s, %#lx, %ld, %ld, %p.\n", iface, debugstr_w(pwcsName), grfMode, reserved1, reserved2, ppstm);
iface, debugstr_w(pwcsName), grfMode,
reserved1, reserved2, ppstm);
if (ppstm == 0) if (ppstm == 0)
return STG_E_INVALIDPOINTER; return STG_E_INVALIDPOINTER;
...@@ -2130,8 +2124,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage( ...@@ -2130,8 +2124,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage(
DirRef newEntryRef; DirRef newEntryRef;
HRESULT hr; HRESULT hr;
TRACE("(%p, %s, %x, %d, %d, %p)\n", TRACE("%p, %s, %#lx, %ld, %ld, %p.\n", iface, debugstr_w(pwcsName), grfMode,
iface, debugstr_w(pwcsName), grfMode,
reserved1, reserved2, ppstg); reserved1, reserved2, ppstg);
if (ppstg == 0) if (ppstg == 0)
...@@ -2150,7 +2143,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage( ...@@ -2150,7 +2143,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage(
if ( FAILED( validateSTGM(grfMode) ) || if ( FAILED( validateSTGM(grfMode) ) ||
(grfMode & STGM_DELETEONRELEASE) ) (grfMode & STGM_DELETEONRELEASE) )
{ {
WARN("bad grfMode: 0x%x\n", grfMode); WARN("bad grfMode: %#lx\n", grfMode);
return STG_E_INVALIDFLAG; return STG_E_INVALIDFLAG;
} }
...@@ -2278,7 +2271,7 @@ static HRESULT StorageBaseImpl_CopyStorageEntryTo(StorageBaseImpl *This, ...@@ -2278,7 +2271,7 @@ static HRESULT StorageBaseImpl_CopyStorageEntryTo(StorageBaseImpl *This,
hr = StorageBaseImpl_CopyChildEntryTo( This, data.dirRootEntry, skip_storage, hr = StorageBaseImpl_CopyChildEntryTo( This, data.dirRootEntry, skip_storage,
skip_stream, snbExclude, pstgDest ); skip_stream, snbExclude, pstgDest );
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -2297,9 +2290,7 @@ static HRESULT WINAPI StorageBaseImpl_CopyTo( ...@@ -2297,9 +2290,7 @@ static HRESULT WINAPI StorageBaseImpl_CopyTo(
BOOL skip_storage = FALSE, skip_stream = FALSE; BOOL skip_storage = FALSE, skip_stream = FALSE;
DWORD i; DWORD i;
TRACE("(%p, %d, %p, %p, %p)\n", TRACE("%p, %ld, %p, %p, %p.\n", iface, ciidExclude, rgiidExclude, snbExclude, pstgDest);
iface, ciidExclude, rgiidExclude,
snbExclude, pstgDest);
if ( pstgDest == 0 ) if ( pstgDest == 0 )
return STG_E_INVALIDPOINTER; return STG_E_INVALIDPOINTER;
...@@ -2381,8 +2372,7 @@ static HRESULT WINAPI StorageBaseImpl_MoveElementTo( ...@@ -2381,8 +2372,7 @@ static HRESULT WINAPI StorageBaseImpl_MoveElementTo(
const OLECHAR *pwcsNewName,/* [string][in] */ const OLECHAR *pwcsNewName,/* [string][in] */
DWORD grfFlags) /* [in] */ DWORD grfFlags) /* [in] */
{ {
FIXME("(%p %s %p %s %u): stub\n", iface, FIXME("%p, %s, %p, %s, %#lx: stub\n", iface, debugstr_w(pwcsName), pstgDest,
debugstr_w(pwcsName), pstgDest,
debugstr_w(pwcsNewName), grfFlags); debugstr_w(pwcsNewName), grfFlags);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -2400,7 +2390,7 @@ static HRESULT WINAPI StorageBaseImpl_Commit( ...@@ -2400,7 +2390,7 @@ static HRESULT WINAPI StorageBaseImpl_Commit(
DWORD grfCommitFlags)/* [in] */ DWORD grfCommitFlags)/* [in] */
{ {
StorageBaseImpl* This = impl_from_IStorage(iface); StorageBaseImpl* This = impl_from_IStorage(iface);
TRACE("(%p %d)\n", iface, grfCommitFlags); TRACE("%p, %#lx.\n", iface, grfCommitFlags);
return StorageBaseImpl_Flush(This); return StorageBaseImpl_Flush(This);
} }
...@@ -2435,7 +2425,7 @@ static HRESULT deleteStorageContents( ...@@ -2435,7 +2425,7 @@ static HRESULT deleteStorageContents(
HRESULT destroyHr = S_OK; HRESULT destroyHr = S_OK;
StorageInternalImpl *stg, *stg2; StorageInternalImpl *stg, *stg2;
TRACE("%p,%d\n", parentStorage, indexToDelete); TRACE("%p, %ld.\n", parentStorage, indexToDelete);
/* Invalidate any open storage objects. */ /* Invalidate any open storage objects. */
LIST_FOR_EACH_ENTRY_SAFE(stg, stg2, &parentStorage->storageHead, StorageInternalImpl, ParentListEntry) LIST_FOR_EACH_ENTRY_SAFE(stg, stg2, &parentStorage->storageHead, StorageInternalImpl, ParentListEntry)
...@@ -2460,7 +2450,7 @@ static HRESULT deleteStorageContents( ...@@ -2460,7 +2450,7 @@ static HRESULT deleteStorageContents(
if (hr != S_OK) if (hr != S_OK)
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -2471,7 +2461,7 @@ static HRESULT deleteStorageContents( ...@@ -2471,7 +2461,7 @@ static HRESULT deleteStorageContents(
if (FAILED(hr)) if (FAILED(hr))
{ {
IStorage_Release(childStorage); IStorage_Release(childStorage);
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -2499,7 +2489,7 @@ static HRESULT deleteStorageContents( ...@@ -2499,7 +2489,7 @@ static HRESULT deleteStorageContents(
IStorage_Release(childStorage); IStorage_Release(childStorage);
IEnumSTATSTG_Release(elements); IEnumSTATSTG_Release(elements);
TRACE("%08x\n", hr); TRACE("%#lx\n", hr);
return destroyHr; return destroyHr;
} }
...@@ -2539,7 +2529,7 @@ static HRESULT deleteStreamContents( ...@@ -2539,7 +2529,7 @@ static HRESULT deleteStreamContents(
if (hr!=S_OK) if (hr!=S_OK)
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return(hr); return(hr);
} }
...@@ -2550,7 +2540,7 @@ static HRESULT deleteStreamContents( ...@@ -2550,7 +2540,7 @@ static HRESULT deleteStreamContents(
if(hr != S_OK) if(hr != S_OK)
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -2558,7 +2548,7 @@ static HRESULT deleteStreamContents( ...@@ -2558,7 +2548,7 @@ static HRESULT deleteStreamContents(
* Release the stream object. * Release the stream object.
*/ */
IStream_Release(pis); IStream_Release(pis);
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return S_OK; return S_OK;
} }
...@@ -2625,7 +2615,7 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement( ...@@ -2625,7 +2615,7 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement(
if (hr!=S_OK) if (hr!=S_OK)
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -2646,7 +2636,7 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement( ...@@ -2646,7 +2636,7 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement(
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
hr = StorageBaseImpl_Flush(This); hr = StorageBaseImpl_Flush(This);
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -2995,7 +2985,7 @@ static HRESULT StorageImpl_LoadFileHeader( ...@@ -2995,7 +2985,7 @@ static HRESULT StorageImpl_LoadFileHeader(
This->smallBlockSize != DEF_SMALL_BLOCK_SIZE || This->smallBlockSize != DEF_SMALL_BLOCK_SIZE ||
This->smallBlockLimit != LIMIT_TO_USE_SMALL_BLOCK) This->smallBlockLimit != LIMIT_TO_USE_SMALL_BLOCK)
{ {
FIXME("Broken OLE storage file? bigblock=0x%x, smallblock=0x%x, sblimit=0x%x\n", FIXME("Broken OLE storage file? bigblock=%#lx, smallblock=%#lx, sblimit=%#lx\n",
This->bigBlockSize, This->smallBlockSize, This->smallBlockLimit); This->bigBlockSize, This->smallBlockSize, This->smallBlockLimit);
hr = STG_E_INVALIDHEADER; hr = STG_E_INVALIDHEADER;
} }
...@@ -3676,7 +3666,7 @@ static BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks( ...@@ -3676,7 +3666,7 @@ static BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
if (FAILED(resRead) || FAILED(resWrite)) if (FAILED(resRead) || FAILED(resWrite))
{ {
ERR("conversion failed: resRead = 0x%08x, resWrite = 0x%08x\n", resRead, resWrite); ERR("conversion failed: resRead = %#lx, resWrite = %#lx\n", resRead, resWrite);
BlockChainStream_SetSize(bbTempChain, size); BlockChainStream_SetSize(bbTempChain, size);
BlockChainStream_Destroy(bbTempChain); BlockChainStream_Destroy(bbTempChain);
return NULL; return NULL;
...@@ -3781,7 +3771,7 @@ static SmallBlockChainStream* Storage32Impl_BigBlocksToSmallBlocks( ...@@ -3781,7 +3771,7 @@ static SmallBlockChainStream* Storage32Impl_BigBlocksToSmallBlocks(
if(FAILED(resRead) || FAILED(resWrite)) if(FAILED(resRead) || FAILED(resWrite))
{ {
ERR("conversion failed: resRead = 0x%08x, resWrite = 0x%08x\n", resRead, resWrite); ERR("conversion failed: resRead = %#lx, resWrite = %#lx\n", resRead, resWrite);
SmallBlockChainStream_SetSize(sbTempChain, size); SmallBlockChainStream_SetSize(sbTempChain, size);
SmallBlockChainStream_Destroy(sbTempChain); SmallBlockChainStream_Destroy(sbTempChain);
return NULL; return NULL;
...@@ -4010,8 +4000,7 @@ static HRESULT StorageImpl_GetNextBlockInChain( ...@@ -4010,8 +4000,7 @@ static HRESULT StorageImpl_GetNextBlockInChain(
if(depotBlockCount >= This->bigBlockDepotCount) if(depotBlockCount >= This->bigBlockDepotCount)
{ {
WARN("depotBlockCount %d, bigBlockDepotCount %d\n", depotBlockCount, WARN("depotBlockCount %ld, bigBlockDepotCount %ld\n", depotBlockCount, This->bigBlockDepotCount);
This->bigBlockDepotCount);
return STG_E_READFAULT; return STG_E_READFAULT;
} }
...@@ -5476,7 +5465,7 @@ static HRESULT WINAPI StorageInternalImpl_Commit( ...@@ -5476,7 +5465,7 @@ static HRESULT WINAPI StorageInternalImpl_Commit(
DWORD grfCommitFlags) /* [in] */ DWORD grfCommitFlags) /* [in] */
{ {
StorageBaseImpl* This = impl_from_IStorage(iface); StorageBaseImpl* This = impl_from_IStorage(iface);
TRACE("(%p,%x)\n", iface, grfCommitFlags); TRACE("%p, %#lx.\n", iface, grfCommitFlags);
return StorageBaseImpl_Flush(This); return StorageBaseImpl_Flush(This);
} }
...@@ -5942,7 +5931,7 @@ static HRESULT WINAPI TransactedSnapshotImpl_Commit( ...@@ -5942,7 +5931,7 @@ static HRESULT WINAPI TransactedSnapshotImpl_Commit(
zero.QuadPart = 0; zero.QuadPart = 0;
TRACE("(%p,%x)\n", iface, grfCommitFlags); TRACE("%p, %#lx.\n", iface, grfCommitFlags);
/* Cannot commit a read-only transacted storage */ /* Cannot commit a read-only transacted storage */
if ( STGM_ACCESS_MODE( This->base.openFlags ) == STGM_READ ) if ( STGM_ACCESS_MODE( This->base.openFlags ) == STGM_READ )
...@@ -6059,7 +6048,7 @@ end: ...@@ -6059,7 +6048,7 @@ end:
StorageBaseImpl_UnlockTransaction(This->transactedParent, TRUE); StorageBaseImpl_UnlockTransaction(This->transactedParent, TRUE);
} }
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -6152,7 +6141,7 @@ static HRESULT TransactedSnapshotImpl_CreateDirEntry(StorageBaseImpl *base, ...@@ -6152,7 +6141,7 @@ static HRESULT TransactedSnapshotImpl_CreateDirEntry(StorageBaseImpl *base,
*index = new_ref; *index = new_ref;
TRACE("%s l=%x r=%x d=%x <-- %x\n", debugstr_w(newData->name), newData->leftChild, newData->rightChild, newData->dirRootEntry, *index); TRACE("%s l=%lx r=%lx d=%lx <-- %lx\n", debugstr_w(newData->name), newData->leftChild, newData->rightChild, newData->dirRootEntry, *index);
return S_OK; return S_OK;
} }
...@@ -6163,12 +6152,12 @@ static HRESULT TransactedSnapshotImpl_WriteDirEntry(StorageBaseImpl *base, ...@@ -6163,12 +6152,12 @@ static HRESULT TransactedSnapshotImpl_WriteDirEntry(StorageBaseImpl *base,
TransactedSnapshotImpl* This = (TransactedSnapshotImpl*) base; TransactedSnapshotImpl* This = (TransactedSnapshotImpl*) base;
HRESULT hr; HRESULT hr;
TRACE("%x %s l=%x r=%x d=%x\n", index, debugstr_w(data->name), data->leftChild, data->rightChild, data->dirRootEntry); TRACE("%lx %s l=%lx r=%lx d=%lx\n", index, debugstr_w(data->name), data->leftChild, data->rightChild, data->dirRootEntry);
hr = TransactedSnapshotImpl_EnsureReadEntry(This, index); hr = TransactedSnapshotImpl_EnsureReadEntry(This, index);
if (FAILED(hr)) if (FAILED(hr))
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -6205,13 +6194,13 @@ static HRESULT TransactedSnapshotImpl_ReadDirEntry(StorageBaseImpl *base, ...@@ -6205,13 +6194,13 @@ static HRESULT TransactedSnapshotImpl_ReadDirEntry(StorageBaseImpl *base,
hr = TransactedSnapshotImpl_EnsureReadEntry(This, index); hr = TransactedSnapshotImpl_EnsureReadEntry(This, index);
if (FAILED(hr)) if (FAILED(hr))
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
memcpy(data, &This->entries[index].data, sizeof(DirEntry)); memcpy(data, &This->entries[index].data, sizeof(DirEntry));
TRACE("%x %s l=%x r=%x d=%x\n", index, debugstr_w(data->name), data->leftChild, data->rightChild, data->dirRootEntry); TRACE("%lx %s l=%lx r=%lx d=%lx\n", index, debugstr_w(data->name), data->leftChild, data->rightChild, data->dirRootEntry);
return S_OK; return S_OK;
} }
...@@ -6271,14 +6260,14 @@ static HRESULT TransactedSnapshotImpl_StreamWriteAt(StorageBaseImpl *base, ...@@ -6271,14 +6260,14 @@ static HRESULT TransactedSnapshotImpl_StreamWriteAt(StorageBaseImpl *base,
hr = TransactedSnapshotImpl_EnsureReadEntry(This, index); hr = TransactedSnapshotImpl_EnsureReadEntry(This, index);
if (FAILED(hr)) if (FAILED(hr))
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
hr = TransactedSnapshotImpl_MakeStreamDirty(This, index); hr = TransactedSnapshotImpl_MakeStreamDirty(This, index);
if (FAILED(hr)) if (FAILED(hr))
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -6290,7 +6279,7 @@ static HRESULT TransactedSnapshotImpl_StreamWriteAt(StorageBaseImpl *base, ...@@ -6290,7 +6279,7 @@ static HRESULT TransactedSnapshotImpl_StreamWriteAt(StorageBaseImpl *base,
This->entries[index].data.size.QuadPart, This->entries[index].data.size.QuadPart,
offset.QuadPart + size); offset.QuadPart + size);
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -6303,7 +6292,7 @@ static HRESULT TransactedSnapshotImpl_StreamSetSize(StorageBaseImpl *base, ...@@ -6303,7 +6292,7 @@ static HRESULT TransactedSnapshotImpl_StreamSetSize(StorageBaseImpl *base,
hr = TransactedSnapshotImpl_EnsureReadEntry(This, index); hr = TransactedSnapshotImpl_EnsureReadEntry(This, index);
if (FAILED(hr)) if (FAILED(hr))
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -6346,7 +6335,7 @@ static HRESULT TransactedSnapshotImpl_StreamSetSize(StorageBaseImpl *base, ...@@ -6346,7 +6335,7 @@ static HRESULT TransactedSnapshotImpl_StreamSetSize(StorageBaseImpl *base,
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
This->entries[index].data.size = newsize; This->entries[index].data.size = newsize;
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -6360,14 +6349,14 @@ static HRESULT TransactedSnapshotImpl_StreamLink(StorageBaseImpl *base, ...@@ -6360,14 +6349,14 @@ static HRESULT TransactedSnapshotImpl_StreamLink(StorageBaseImpl *base,
hr = TransactedSnapshotImpl_EnsureReadEntry(This, src); hr = TransactedSnapshotImpl_EnsureReadEntry(This, src);
if (FAILED(hr)) if (FAILED(hr))
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
hr = TransactedSnapshotImpl_EnsureReadEntry(This, dst); hr = TransactedSnapshotImpl_EnsureReadEntry(This, dst);
if (FAILED(hr)) if (FAILED(hr))
{ {
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -6656,7 +6645,7 @@ static HRESULT WINAPI TransactedSharedImpl_Commit( ...@@ -6656,7 +6645,7 @@ static HRESULT WINAPI TransactedSharedImpl_Commit(
HRESULT hr; HRESULT hr;
ULONG transactionSig; ULONG transactionSig;
TRACE("(%p,%x)\n", iface, grfCommitFlags); TRACE("%p, %#lx\n", iface, grfCommitFlags);
/* Cannot commit a read-only transacted storage */ /* Cannot commit a read-only transacted storage */
if ( STGM_ACCESS_MODE( This->base.openFlags ) == STGM_READ ) if ( STGM_ACCESS_MODE( This->base.openFlags ) == STGM_READ )
...@@ -6724,7 +6713,7 @@ static HRESULT WINAPI TransactedSharedImpl_Commit( ...@@ -6724,7 +6713,7 @@ static HRESULT WINAPI TransactedSharedImpl_Commit(
This->lastTransactionSig = transactionSig+1; This->lastTransactionSig = transactionSig+1;
} }
} }
TRACE("<-- %08x\n", hr); TRACE("<-- %#lx\n", hr);
return hr; return hr;
} }
...@@ -6862,7 +6851,7 @@ static HRESULT Storage_ConstructTransacted(StorageBaseImpl *parentStorage, ...@@ -6862,7 +6851,7 @@ static HRESULT Storage_ConstructTransacted(StorageBaseImpl *parentStorage,
if (parentStorage->openFlags & fixme_flags) if (parentStorage->openFlags & fixme_flags)
{ {
fixme_flags &= ~parentStorage->openFlags; fixme_flags &= ~parentStorage->openFlags;
FIXME("Unimplemented flags %x\n", parentStorage->openFlags); FIXME("Unimplemented flags %lx\n", parentStorage->openFlags);
} }
if (toplevel && !(parentStorage->openFlags & STGM_NOSNAPSHOT) && if (toplevel && !(parentStorage->openFlags & STGM_NOSNAPSHOT) &&
...@@ -7590,7 +7579,7 @@ HRESULT BlockChainStream_ReadAt(BlockChainStream* This, ...@@ -7590,7 +7579,7 @@ HRESULT BlockChainStream_ReadAt(BlockChainStream* This,
HRESULT hr; HRESULT hr;
BlockChainBlock *cachedBlock; BlockChainBlock *cachedBlock;
TRACE("(%p)-> %i %p %i %p\n",This, offset.u.LowPart, buffer, size, bytesRead); TRACE("%p, %li, %p, %lu, %p.\n",This, offset.u.LowPart, buffer, size, bytesRead);
/* /*
* Find the first block in the stream that contains part of the buffer. * Find the first block in the stream that contains part of the buffer.
...@@ -8581,7 +8570,7 @@ static HRESULT create_storagefile( ...@@ -8581,7 +8570,7 @@ static HRESULT create_storagefile(
IStorage_Release(&newStorage->IStorage_iface); IStorage_Release(&newStorage->IStorage_iface);
end: end:
TRACE("<-- %p r = %08x\n", *ppstgOpen, hr); TRACE("<-- %p r = %#lx\n", *ppstgOpen, hr);
return hr; return hr;
} }
...@@ -8613,9 +8602,7 @@ HRESULT WINAPI StgCreateDocfile( ...@@ -8613,9 +8602,7 @@ HRESULT WINAPI StgCreateDocfile(
{ {
STGOPTIONS stgoptions = {1, 0, 512}; STGOPTIONS stgoptions = {1, 0, 512};
TRACE("(%s, %x, %d, %p)\n", TRACE("%s, %#lx, %ld, %p.\n", debugstr_w(pwcsName), grfMode, reserved, ppstgOpen);
debugstr_w(pwcsName), grfMode,
reserved, ppstgOpen);
if (ppstgOpen == 0) if (ppstgOpen == 0)
return STG_E_INVALIDPOINTER; return STG_E_INVALIDPOINTER;
...@@ -8630,7 +8617,7 @@ HRESULT WINAPI StgCreateDocfile( ...@@ -8630,7 +8617,7 @@ HRESULT WINAPI StgCreateDocfile(
*/ */
HRESULT WINAPI StgCreateStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD stgfmt, DWORD grfAttrs, STGOPTIONS* pStgOptions, void* reserved, REFIID riid, void** ppObjectOpen) HRESULT WINAPI StgCreateStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD stgfmt, DWORD grfAttrs, STGOPTIONS* pStgOptions, void* reserved, REFIID riid, void** ppObjectOpen)
{ {
TRACE("(%s, %x, %x, %x, %p, %p, %p, %p)\n", debugstr_w(pwcsName), TRACE("%s, %#lx, %#lx, %#lx, %p, %p, %p, %p.\n", debugstr_w(pwcsName),
grfMode, stgfmt, grfAttrs, pStgOptions, reserved, riid, ppObjectOpen); grfMode, stgfmt, grfAttrs, pStgOptions, reserved, riid, ppObjectOpen);
if (stgfmt != STGFMT_FILE && grfAttrs != 0) if (stgfmt != STGFMT_FILE && grfAttrs != 0)
...@@ -8670,7 +8657,7 @@ HRESULT WINAPI StgCreateStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD st ...@@ -8670,7 +8657,7 @@ HRESULT WINAPI StgCreateStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD st
HRESULT WINAPI StgCreatePropSetStg(IStorage *pstg, DWORD reserved, HRESULT WINAPI StgCreatePropSetStg(IStorage *pstg, DWORD reserved,
IPropertySetStorage **propset) IPropertySetStorage **propset)
{ {
TRACE("(%p, 0x%x, %p)\n", pstg, reserved, propset); TRACE("%p, %#lx, %p.\n", pstg, reserved, propset);
if (reserved) if (reserved)
return STG_E_INVALIDPARAMETER; return STG_E_INVALIDPARAMETER;
...@@ -8682,7 +8669,7 @@ HRESULT WINAPI StgCreatePropSetStg(IStorage *pstg, DWORD reserved, ...@@ -8682,7 +8669,7 @@ HRESULT WINAPI StgCreatePropSetStg(IStorage *pstg, DWORD reserved,
*/ */
HRESULT WINAPI StgOpenStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD stgfmt, DWORD grfAttrs, STGOPTIONS* pStgOptions, void* reserved, REFIID riid, void** ppObjectOpen) HRESULT WINAPI StgOpenStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD stgfmt, DWORD grfAttrs, STGOPTIONS* pStgOptions, void* reserved, REFIID riid, void** ppObjectOpen)
{ {
TRACE("(%s, %x, %x, %x, %p, %p, %p, %p)\n", debugstr_w(pwcsName), TRACE("%s, %#lx, %#lx, %#lx, %p, %p, %p, %p.\n", debugstr_w(pwcsName),
grfMode, stgfmt, grfAttrs, pStgOptions, reserved, riid, ppObjectOpen); grfMode, stgfmt, grfAttrs, pStgOptions, reserved, riid, ppObjectOpen);
if (stgfmt != STGFMT_DOCFILE && grfAttrs != 0) if (stgfmt != STGFMT_DOCFILE && grfAttrs != 0)
...@@ -8739,8 +8726,7 @@ HRESULT WINAPI StgOpenStorage( ...@@ -8739,8 +8726,7 @@ HRESULT WINAPI StgOpenStorage(
DWORD accessMode; DWORD accessMode;
LPWSTR temp_name = NULL; LPWSTR temp_name = NULL;
TRACE("(%s, %p, %x, %p, %d, %p)\n", TRACE("%s, %p, %#lx, %p, %ld, %p.\n", debugstr_w(pwcsName), pstgPriority, grfMode,
debugstr_w(pwcsName), pstgPriority, grfMode,
snbExclude, reserved, ppstgOpen); snbExclude, reserved, ppstgOpen);
if (pstgPriority) if (pstgPriority)
...@@ -8908,7 +8894,7 @@ HRESULT WINAPI StgOpenStorage( ...@@ -8908,7 +8894,7 @@ HRESULT WINAPI StgOpenStorage(
end: end:
CoTaskMemFree(temp_name); CoTaskMemFree(temp_name);
if (pstgPriority) IStorage_Release(pstgPriority); if (pstgPriority) IStorage_Release(pstgPriority);
TRACE("<-- %08x, IStorage %p\n", hr, ppstgOpen ? *ppstgOpen : NULL); TRACE("<-- %#lx, IStorage %p\n", hr, ppstgOpen ? *ppstgOpen : NULL);
return hr; return hr;
} }
...@@ -9242,7 +9228,7 @@ static HRESULT STREAM_ReadString( IStream *stm, LPWSTR *string ) ...@@ -9242,7 +9228,7 @@ static HRESULT STREAM_ReadString( IStream *stm, LPWSTR *string )
if( count != sizeof(len) ) if( count != sizeof(len) )
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
TRACE("%d bytes\n",len); TRACE("%ld bytes\n",len);
str = CoTaskMemAlloc( len ); str = CoTaskMemAlloc( len );
if( !str ) if( !str )
...@@ -9381,7 +9367,7 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp ...@@ -9381,7 +9367,7 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp
r = IStorage_OpenStream( pstg, L"\1CompObj", NULL, STGM_READ | STGM_SHARE_EXCLUSIVE, 0, &stm ); r = IStorage_OpenStream( pstg, L"\1CompObj", NULL, STGM_READ | STGM_SHARE_EXCLUSIVE, 0, &stm );
if( FAILED ( r ) ) if( FAILED ( r ) )
{ {
WARN("Failed to open stream r = %08x\n", r); WARN("Failed to open stream r = %#lx\n", r);
return r; return r;
} }
...@@ -10576,7 +10562,7 @@ enum stream_1ole_flags { ...@@ -10576,7 +10562,7 @@ enum stream_1ole_flags {
HRESULT WINAPI OleConvertIStorageToOLESTREAMEx ( LPSTORAGE stg, CLIPFORMAT cf, LONG width, LONG height, HRESULT WINAPI OleConvertIStorageToOLESTREAMEx ( LPSTORAGE stg, CLIPFORMAT cf, LONG width, LONG height,
DWORD size, LPSTGMEDIUM medium, LPOLESTREAM olestream ) DWORD size, LPSTGMEDIUM medium, LPOLESTREAM olestream )
{ {
FIXME("%p %x %d %d %d %p %p stub\n", stg, cf, width, height, size, medium, olestream); FIXME("%p, %x, %ld, %ld, %ld, %p, %p: stub\n", stg, cf, width, height, size, medium, olestream);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -10604,7 +10590,7 @@ HRESULT WINAPI GetConvertStg(IStorage *stg) ...@@ -10604,7 +10590,7 @@ HRESULT WINAPI GetConvertStg(IStorage *stg)
if (header[0] != version_magic) if (header[0] != version_magic)
{ {
ERR("got wrong version magic for 1Ole stream, 0x%08x\n", header[0]); ERR("got wrong version magic for 1Ole stream, %#lx.\n", header[0]);
return E_FAIL; return E_FAIL;
} }
......
...@@ -106,7 +106,7 @@ ULONG __RPC_USER HMETAFILE_UserSize(ULONG *pFlags, ULONG StartingSize, HMETAFILE ...@@ -106,7 +106,7 @@ ULONG __RPC_USER HMETAFILE_UserSize(ULONG *pFlags, ULONG StartingSize, HMETAFILE
{ {
ULONG size = StartingSize; ULONG size = StartingSize;
TRACE("(%s, %d, &%p\n", debugstr_user_flags(pFlags), StartingSize, *phmf); TRACE("%s, %lu, &%p.\n", debugstr_user_flags(pFlags), StartingSize, *phmf);
ALIGN_LENGTH(size, 3); ALIGN_LENGTH(size, 3);
...@@ -302,7 +302,7 @@ void __RPC_USER HMETAFILE_UserFree(ULONG *pFlags, HMETAFILE *phmf) ...@@ -302,7 +302,7 @@ void __RPC_USER HMETAFILE_UserFree(ULONG *pFlags, HMETAFILE *phmf)
*/ */
ULONG __RPC_USER HENHMETAFILE_UserSize(ULONG *pFlags, ULONG size, HENHMETAFILE *phEmf) ULONG __RPC_USER HENHMETAFILE_UserSize(ULONG *pFlags, ULONG size, HENHMETAFILE *phEmf)
{ {
TRACE("(%s, %d, %p\n", debugstr_user_flags(pFlags), size, *phEmf); TRACE("%s, %lu, %p.\n", debugstr_user_flags(pFlags), size, *phEmf);
ALIGN_LENGTH(size, 3); ALIGN_LENGTH(size, 3);
...@@ -498,7 +498,7 @@ void __RPC_USER HENHMETAFILE_UserFree(ULONG *pFlags, HENHMETAFILE *phEmf) ...@@ -498,7 +498,7 @@ void __RPC_USER HENHMETAFILE_UserFree(ULONG *pFlags, HENHMETAFILE *phEmf)
*/ */
ULONG __RPC_USER HMETAFILEPICT_UserSize(ULONG *pFlags, ULONG size, HMETAFILEPICT *phMfp) ULONG __RPC_USER HMETAFILEPICT_UserSize(ULONG *pFlags, ULONG size, HMETAFILEPICT *phMfp)
{ {
TRACE("(%s, %d, &%p)\n", debugstr_user_flags(pFlags), size, *phMfp); TRACE("%s, %lu, &%p.\n", debugstr_user_flags(pFlags), size, *phMfp);
ALIGN_LENGTH(size, 3); ALIGN_LENGTH(size, 3);
...@@ -721,7 +721,7 @@ ULONG __RPC_USER STGMEDIUM_UserSize(ULONG *pFlags, ULONG StartingSize, STGMEDIUM ...@@ -721,7 +721,7 @@ ULONG __RPC_USER STGMEDIUM_UserSize(ULONG *pFlags, ULONG StartingSize, STGMEDIUM
{ {
ULONG size = StartingSize; ULONG size = StartingSize;
TRACE("(%s, %d, %p\n", debugstr_user_flags(pFlags), StartingSize, pStgMedium); TRACE("%s, %lu, %p.\n", debugstr_user_flags(pFlags), StartingSize, pStgMedium);
ALIGN_LENGTH(size, 3); ALIGN_LENGTH(size, 3);
...@@ -961,7 +961,7 @@ unsigned char * __RPC_USER STGMEDIUM_UserUnmarshal(ULONG *pFlags, unsigned char ...@@ -961,7 +961,7 @@ unsigned char * __RPC_USER STGMEDIUM_UserUnmarshal(ULONG *pFlags, unsigned char
pBuffer += sizeof(DWORD); pBuffer += sizeof(DWORD);
if (*(DWORD *)pBuffer != 0) if (*(DWORD *)pBuffer != 0)
{ {
ERR("invalid offset %d\n", *(DWORD *)pBuffer); ERR("invalid offset %ld\n", *(DWORD *)pBuffer);
RpcRaiseException(RPC_S_INVALID_BOUND); RpcRaiseException(RPC_S_INVALID_BOUND);
return NULL; return NULL;
} }
...@@ -970,14 +970,13 @@ unsigned char * __RPC_USER STGMEDIUM_UserUnmarshal(ULONG *pFlags, unsigned char ...@@ -970,14 +970,13 @@ unsigned char * __RPC_USER STGMEDIUM_UserUnmarshal(ULONG *pFlags, unsigned char
pBuffer += sizeof(DWORD); pBuffer += sizeof(DWORD);
if (conformance != variance) if (conformance != variance)
{ {
ERR("conformance (%d) and variance (%d) should be equal\n", ERR("conformance (%ld) and variance (%ld) should be equal\n", conformance, variance);
conformance, variance);
RpcRaiseException(RPC_S_INVALID_BOUND); RpcRaiseException(RPC_S_INVALID_BOUND);
return NULL; return NULL;
} }
if (conformance > 0x7fffffff) if (conformance > 0x7fffffff)
{ {
ERR("conformance 0x%x too large\n", conformance); ERR("conformance %#lx too large\n", conformance);
RpcRaiseException(RPC_S_INVALID_BOUND); RpcRaiseException(RPC_S_INVALID_BOUND);
return NULL; return NULL;
} }
...@@ -1141,7 +1140,7 @@ ULONG __RPC_USER SNB_UserSize(ULONG *pFlags, ULONG StartingSize, SNB *pSnb) ...@@ -1141,7 +1140,7 @@ ULONG __RPC_USER SNB_UserSize(ULONG *pFlags, ULONG StartingSize, SNB *pSnb)
{ {
ULONG size = StartingSize; ULONG size = StartingSize;
TRACE("(%s, %d, %p\n", debugstr_user_flags(pFlags), StartingSize, pSnb); TRACE("%s, %lu, %p.\n", debugstr_user_flags(pFlags), StartingSize, pSnb);
ALIGN_LENGTH(size, 3); ALIGN_LENGTH(size, 3);
...@@ -1305,7 +1304,7 @@ HRESULT CALLBACK IEnumUnknown_Next_Proxy( ...@@ -1305,7 +1304,7 @@ HRESULT CALLBACK IEnumUnknown_Next_Proxy(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
ULONG fetched; ULONG fetched;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
if (!pceltFetched) pceltFetched = &fetched; if (!pceltFetched) pceltFetched = &fetched;
return IEnumUnknown_RemoteNext_Proxy(This, celt, rgelt, pceltFetched); return IEnumUnknown_RemoteNext_Proxy(This, celt, rgelt, pceltFetched);
} }
...@@ -1317,7 +1316,7 @@ HRESULT __RPC_STUB IEnumUnknown_Next_Stub( ...@@ -1317,7 +1316,7 @@ HRESULT __RPC_STUB IEnumUnknown_Next_Stub(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
*pceltFetched = 0; *pceltFetched = 0;
hr = IEnumUnknown_Next(This, celt, rgelt, pceltFetched); hr = IEnumUnknown_Next(This, celt, rgelt, pceltFetched);
if (hr == S_OK) *pceltFetched = celt; if (hr == S_OK) *pceltFetched = celt;
...@@ -1363,7 +1362,7 @@ HRESULT CALLBACK IEnumMoniker_Next_Proxy( ...@@ -1363,7 +1362,7 @@ HRESULT CALLBACK IEnumMoniker_Next_Proxy(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
ULONG fetched; ULONG fetched;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
if (!pceltFetched) pceltFetched = &fetched; if (!pceltFetched) pceltFetched = &fetched;
return IEnumMoniker_RemoteNext_Proxy(This, celt, rgelt, pceltFetched); return IEnumMoniker_RemoteNext_Proxy(This, celt, rgelt, pceltFetched);
} }
...@@ -1375,7 +1374,7 @@ HRESULT __RPC_STUB IEnumMoniker_Next_Stub( ...@@ -1375,7 +1374,7 @@ HRESULT __RPC_STUB IEnumMoniker_Next_Stub(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
*pceltFetched = 0; *pceltFetched = 0;
hr = IEnumMoniker_Next(This, celt, rgelt, pceltFetched); hr = IEnumMoniker_Next(This, celt, rgelt, pceltFetched);
if (hr == S_OK) *pceltFetched = celt; if (hr == S_OK) *pceltFetched = celt;
...@@ -1449,7 +1448,7 @@ HRESULT CALLBACK IEnumString_Next_Proxy( ...@@ -1449,7 +1448,7 @@ HRESULT CALLBACK IEnumString_Next_Proxy(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
ULONG fetched; ULONG fetched;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
if (!pceltFetched) pceltFetched = &fetched; if (!pceltFetched) pceltFetched = &fetched;
return IEnumString_RemoteNext_Proxy(This, celt, rgelt, pceltFetched); return IEnumString_RemoteNext_Proxy(This, celt, rgelt, pceltFetched);
} }
...@@ -1461,7 +1460,7 @@ HRESULT __RPC_STUB IEnumString_Next_Stub( ...@@ -1461,7 +1460,7 @@ HRESULT __RPC_STUB IEnumString_Next_Stub(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
*pceltFetched = 0; *pceltFetched = 0;
hr = IEnumString_Next(This, celt, rgelt, pceltFetched); hr = IEnumString_Next(This, celt, rgelt, pceltFetched);
if (hr == S_OK) *pceltFetched = celt; if (hr == S_OK) *pceltFetched = celt;
...@@ -1477,7 +1476,7 @@ HRESULT CALLBACK ISequentialStream_Read_Proxy( ...@@ -1477,7 +1476,7 @@ HRESULT CALLBACK ISequentialStream_Read_Proxy(
ULONG read; ULONG read;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%p, %d, %p)\n", This, pv, cb, pcbRead); TRACE("%p, %p, %lu, %p.\n", This, pv, cb, pcbRead);
hr = ISequentialStream_RemoteRead_Proxy(This, pv, cb, &read); hr = ISequentialStream_RemoteRead_Proxy(This, pv, cb, &read);
if(pcbRead) *pcbRead = read; if(pcbRead) *pcbRead = read;
...@@ -1491,7 +1490,7 @@ HRESULT __RPC_STUB ISequentialStream_Read_Stub( ...@@ -1491,7 +1490,7 @@ HRESULT __RPC_STUB ISequentialStream_Read_Stub(
ULONG cb, ULONG cb,
ULONG *pcbRead) ULONG *pcbRead)
{ {
TRACE("(%p)->(%p, %d, %p)\n", This, pv, cb, pcbRead); TRACE("%p, %p, %lu, %p.\n", This, pv, cb, pcbRead);
return ISequentialStream_Read(This, pv, cb, pcbRead); return ISequentialStream_Read(This, pv, cb, pcbRead);
} }
...@@ -1504,7 +1503,7 @@ HRESULT CALLBACK ISequentialStream_Write_Proxy( ...@@ -1504,7 +1503,7 @@ HRESULT CALLBACK ISequentialStream_Write_Proxy(
ULONG written; ULONG written;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%p, %d, %p)\n", This, pv, cb, pcbWritten); TRACE("%p, %p, %lu, %p.\n", This, pv, cb, pcbWritten);
hr = ISequentialStream_RemoteWrite_Proxy(This, pv, cb, &written); hr = ISequentialStream_RemoteWrite_Proxy(This, pv, cb, &written);
if(pcbWritten) *pcbWritten = written; if(pcbWritten) *pcbWritten = written;
...@@ -1518,7 +1517,7 @@ HRESULT __RPC_STUB ISequentialStream_Write_Stub( ...@@ -1518,7 +1517,7 @@ HRESULT __RPC_STUB ISequentialStream_Write_Stub(
ULONG cb, ULONG cb,
ULONG *pcbWritten) ULONG *pcbWritten)
{ {
TRACE("(%p)->(%p, %d, %p)\n", This, pv, cb, pcbWritten); TRACE("%p, %p, %lu, %p.\n", This, pv, cb, pcbWritten);
return ISequentialStream_Write(This, pv, cb, pcbWritten); return ISequentialStream_Write(This, pv, cb, pcbWritten);
} }
...@@ -1531,7 +1530,7 @@ HRESULT CALLBACK IStream_Seek_Proxy( ...@@ -1531,7 +1530,7 @@ HRESULT CALLBACK IStream_Seek_Proxy(
ULARGE_INTEGER newpos; ULARGE_INTEGER newpos;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %d, %p)\n", This, wine_dbgstr_longlong(dlibMove.QuadPart), dwOrigin, plibNewPosition); TRACE("%p, %s, %ld, %p.\n", This, wine_dbgstr_longlong(dlibMove.QuadPart), dwOrigin, plibNewPosition);
hr = IStream_RemoteSeek_Proxy(This, dlibMove, dwOrigin, &newpos); hr = IStream_RemoteSeek_Proxy(This, dlibMove, dwOrigin, &newpos);
if(plibNewPosition) *plibNewPosition = newpos; if(plibNewPosition) *plibNewPosition = newpos;
...@@ -1545,7 +1544,7 @@ HRESULT __RPC_STUB IStream_Seek_Stub( ...@@ -1545,7 +1544,7 @@ HRESULT __RPC_STUB IStream_Seek_Stub(
DWORD dwOrigin, DWORD dwOrigin,
ULARGE_INTEGER *plibNewPosition) ULARGE_INTEGER *plibNewPosition)
{ {
TRACE("(%p)->(%s, %d, %p)\n", This, wine_dbgstr_longlong(dlibMove.QuadPart), dwOrigin, plibNewPosition); TRACE("%p, %s, %ld, %p.\n", This, wine_dbgstr_longlong(dlibMove.QuadPart), dwOrigin, plibNewPosition);
return IStream_Seek(This, dlibMove, dwOrigin, plibNewPosition); return IStream_Seek(This, dlibMove, dwOrigin, plibNewPosition);
} }
...@@ -1587,7 +1586,7 @@ HRESULT CALLBACK IEnumSTATSTG_Next_Proxy( ...@@ -1587,7 +1586,7 @@ HRESULT CALLBACK IEnumSTATSTG_Next_Proxy(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
ULONG fetched; ULONG fetched;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
if (!pceltFetched) pceltFetched = &fetched; if (!pceltFetched) pceltFetched = &fetched;
return IEnumSTATSTG_RemoteNext_Proxy(This, celt, rgelt, pceltFetched); return IEnumSTATSTG_RemoteNext_Proxy(This, celt, rgelt, pceltFetched);
} }
...@@ -1599,7 +1598,7 @@ HRESULT __RPC_STUB IEnumSTATSTG_Next_Stub( ...@@ -1599,7 +1598,7 @@ HRESULT __RPC_STUB IEnumSTATSTG_Next_Stub(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
*pceltFetched = 0; *pceltFetched = 0;
hr = IEnumSTATSTG_Next(This, celt, rgelt, pceltFetched); hr = IEnumSTATSTG_Next(This, celt, rgelt, pceltFetched);
if (hr == S_OK) *pceltFetched = celt; if (hr == S_OK) *pceltFetched = celt;
...@@ -1614,7 +1613,7 @@ HRESULT CALLBACK IStorage_OpenStream_Proxy( ...@@ -1614,7 +1613,7 @@ HRESULT CALLBACK IStorage_OpenStream_Proxy(
DWORD reserved2, DWORD reserved2,
IStream **ppstm) IStream **ppstm)
{ {
TRACE("(%p)->(%s, %p, %08x, %d %p)\n", This, debugstr_w(pwcsName), reserved1, grfMode, reserved2, ppstm); TRACE("%p, %s, %p, %#lx, %ld, %p.\n", This, debugstr_w(pwcsName), reserved1, grfMode, reserved2, ppstm);
if(reserved1) WARN("reserved1 %p\n", reserved1); if(reserved1) WARN("reserved1 %p\n", reserved1);
return IStorage_RemoteOpenStream_Proxy(This, pwcsName, 0, NULL, grfMode, reserved2, ppstm); return IStorage_RemoteOpenStream_Proxy(This, pwcsName, 0, NULL, grfMode, reserved2, ppstm);
...@@ -1629,8 +1628,8 @@ HRESULT __RPC_STUB IStorage_OpenStream_Stub( ...@@ -1629,8 +1628,8 @@ HRESULT __RPC_STUB IStorage_OpenStream_Stub(
DWORD reserved2, DWORD reserved2,
IStream **ppstm) IStream **ppstm)
{ {
TRACE("(%p)->(%s, %d, %p, %08x, %d %p)\n", This, debugstr_w(pwcsName), cbReserved1, reserved1, grfMode, reserved2, ppstm); TRACE("%p, %s, %ld, %p, %#lx, %ld, %p.\n", This, debugstr_w(pwcsName), cbReserved1, reserved1, grfMode, reserved2, ppstm);
if(cbReserved1 || reserved1) WARN("cbReserved1 %d reserved1 %p\n", cbReserved1, reserved1); if(cbReserved1 || reserved1) WARN("cbReserved1 %ld reserved1 %p\n", cbReserved1, reserved1);
return IStorage_OpenStream(This, pwcsName, NULL, grfMode, reserved2, ppstm); return IStorage_OpenStream(This, pwcsName, NULL, grfMode, reserved2, ppstm);
} }
...@@ -1642,7 +1641,7 @@ HRESULT CALLBACK IStorage_EnumElements_Proxy( ...@@ -1642,7 +1641,7 @@ HRESULT CALLBACK IStorage_EnumElements_Proxy(
DWORD reserved3, DWORD reserved3,
IEnumSTATSTG **ppenum) IEnumSTATSTG **ppenum)
{ {
TRACE("(%p)->(%d, %p, %d, %p)\n", This, reserved1, reserved2, reserved3, ppenum); TRACE("%p, %ld, %p, %ld, %p.\n", This, reserved1, reserved2, reserved3, ppenum);
if(reserved2) WARN("reserved2 %p\n", reserved2); if(reserved2) WARN("reserved2 %p\n", reserved2);
return IStorage_RemoteEnumElements_Proxy(This, reserved1, 0, NULL, reserved3, ppenum); return IStorage_RemoteEnumElements_Proxy(This, reserved1, 0, NULL, reserved3, ppenum);
...@@ -1656,8 +1655,8 @@ HRESULT __RPC_STUB IStorage_EnumElements_Stub( ...@@ -1656,8 +1655,8 @@ HRESULT __RPC_STUB IStorage_EnumElements_Stub(
DWORD reserved3, DWORD reserved3,
IEnumSTATSTG **ppenum) IEnumSTATSTG **ppenum)
{ {
TRACE("(%p)->(%d, %d, %p, %d, %p)\n", This, reserved1, cbReserved2, reserved2, reserved3, ppenum); TRACE("%p, %ld, %ld, %p, %ld, %p.\n", This, reserved1, cbReserved2, reserved2, reserved3, ppenum);
if(cbReserved2 || reserved2) WARN("cbReserved2 %d reserved2 %p\n", cbReserved2, reserved2); if(cbReserved2 || reserved2) WARN("cbReserved2 %ld reserved2 %p\n", cbReserved2, reserved2);
return IStorage_EnumElements(This, reserved1, NULL, reserved3, ppenum); return IStorage_EnumElements(This, reserved1, NULL, reserved3, ppenum);
} }
...@@ -1672,7 +1671,7 @@ HRESULT CALLBACK ILockBytes_ReadAt_Proxy( ...@@ -1672,7 +1671,7 @@ HRESULT CALLBACK ILockBytes_ReadAt_Proxy(
ULONG read; ULONG read;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %p, %d, %p)\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbRead); TRACE("%p, %s, %p, %lu, %p.\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbRead);
hr = ILockBytes_RemoteReadAt_Proxy(This, ulOffset, pv, cb, &read); hr = ILockBytes_RemoteReadAt_Proxy(This, ulOffset, pv, cb, &read);
if(pcbRead) *pcbRead = read; if(pcbRead) *pcbRead = read;
...@@ -1687,7 +1686,7 @@ HRESULT __RPC_STUB ILockBytes_ReadAt_Stub( ...@@ -1687,7 +1686,7 @@ HRESULT __RPC_STUB ILockBytes_ReadAt_Stub(
ULONG cb, ULONG cb,
ULONG *pcbRead) ULONG *pcbRead)
{ {
TRACE("(%p)->(%s, %p, %d, %p)\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbRead); TRACE("%p, %s, %p, %lu, %p.\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbRead);
return ILockBytes_ReadAt(This, ulOffset, pv, cb, pcbRead); return ILockBytes_ReadAt(This, ulOffset, pv, cb, pcbRead);
} }
...@@ -1701,7 +1700,7 @@ HRESULT CALLBACK ILockBytes_WriteAt_Proxy( ...@@ -1701,7 +1700,7 @@ HRESULT CALLBACK ILockBytes_WriteAt_Proxy(
ULONG written; ULONG written;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %p, %d, %p)\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbWritten); TRACE("%p, %s, %p, %lu, %p.\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbWritten);
hr = ILockBytes_RemoteWriteAt_Proxy(This, ulOffset, pv, cb, &written); hr = ILockBytes_RemoteWriteAt_Proxy(This, ulOffset, pv, cb, &written);
if(pcbWritten) *pcbWritten = written; if(pcbWritten) *pcbWritten = written;
...@@ -1716,7 +1715,7 @@ HRESULT __RPC_STUB ILockBytes_WriteAt_Stub( ...@@ -1716,7 +1715,7 @@ HRESULT __RPC_STUB ILockBytes_WriteAt_Stub(
ULONG cb, ULONG cb,
ULONG *pcbWritten) ULONG *pcbWritten)
{ {
TRACE("(%p)->(%s, %p, %d, %p)\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbWritten); TRACE("%p, %s, %p, %lu, %p.\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbWritten);
return ILockBytes_WriteAt(This, ulOffset, pv, cb, pcbWritten); return ILockBytes_WriteAt(This, ulOffset, pv, cb, pcbWritten);
} }
...@@ -1729,7 +1728,7 @@ HRESULT CALLBACK IFillLockBytes_FillAppend_Proxy( ...@@ -1729,7 +1728,7 @@ HRESULT CALLBACK IFillLockBytes_FillAppend_Proxy(
ULONG written; ULONG written;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%p, %d, %p)\n", This, pv, cb, pcbWritten); TRACE("%p, %p, %lu, %p.\n", This, pv, cb, pcbWritten);
hr = IFillLockBytes_RemoteFillAppend_Proxy(This, pv, cb, &written); hr = IFillLockBytes_RemoteFillAppend_Proxy(This, pv, cb, &written);
if(pcbWritten) *pcbWritten = written; if(pcbWritten) *pcbWritten = written;
...@@ -1743,7 +1742,7 @@ HRESULT __RPC_STUB IFillLockBytes_FillAppend_Stub( ...@@ -1743,7 +1742,7 @@ HRESULT __RPC_STUB IFillLockBytes_FillAppend_Stub(
ULONG cb, ULONG cb,
ULONG *pcbWritten) ULONG *pcbWritten)
{ {
TRACE("(%p)->(%p, %d, %p)\n", This, pv, cb, pcbWritten); TRACE("%p, %p, %lu, %p.\n", This, pv, cb, pcbWritten);
return IFillLockBytes_FillAppend(This, pv, cb, pcbWritten); return IFillLockBytes_FillAppend(This, pv, cb, pcbWritten);
} }
...@@ -1757,7 +1756,7 @@ HRESULT CALLBACK IFillLockBytes_FillAt_Proxy( ...@@ -1757,7 +1756,7 @@ HRESULT CALLBACK IFillLockBytes_FillAt_Proxy(
ULONG written; ULONG written;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %p, %d, %p)\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbWritten); TRACE("%p, %s, %p, %lu, %p.\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbWritten);
hr = IFillLockBytes_RemoteFillAt_Proxy(This, ulOffset, pv, cb, &written); hr = IFillLockBytes_RemoteFillAt_Proxy(This, ulOffset, pv, cb, &written);
if(pcbWritten) *pcbWritten = written; if(pcbWritten) *pcbWritten = written;
...@@ -1772,7 +1771,7 @@ HRESULT __RPC_STUB IFillLockBytes_FillAt_Stub( ...@@ -1772,7 +1771,7 @@ HRESULT __RPC_STUB IFillLockBytes_FillAt_Stub(
ULONG cb, ULONG cb,
ULONG *pcbWritten) ULONG *pcbWritten)
{ {
TRACE("(%p)->(%s, %p, %d, %p)\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbWritten); TRACE("%p, %s, %p, %ld, %p.\n", This, wine_dbgstr_longlong(ulOffset.QuadPart), pv, cb, pcbWritten);
return IFillLockBytes_FillAt(This, ulOffset, pv, cb, pcbWritten); return IFillLockBytes_FillAt(This, ulOffset, pv, cb, pcbWritten);
} }
...@@ -1807,7 +1806,7 @@ HRESULT CALLBACK IEnumSTATDATA_Next_Proxy( ...@@ -1807,7 +1806,7 @@ HRESULT CALLBACK IEnumSTATDATA_Next_Proxy(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
ULONG fetched; ULONG fetched;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %ld, %p, %p.\n", This, celt, rgelt, pceltFetched);
if (!pceltFetched) pceltFetched = &fetched; if (!pceltFetched) pceltFetched = &fetched;
return IEnumSTATDATA_RemoteNext_Proxy(This, celt, rgelt, pceltFetched); return IEnumSTATDATA_RemoteNext_Proxy(This, celt, rgelt, pceltFetched);
} }
...@@ -1819,7 +1818,7 @@ HRESULT __RPC_STUB IEnumSTATDATA_Next_Stub( ...@@ -1819,7 +1818,7 @@ HRESULT __RPC_STUB IEnumSTATDATA_Next_Stub(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
*pceltFetched = 0; *pceltFetched = 0;
hr = IEnumSTATDATA_Next(This, celt, rgelt, pceltFetched); hr = IEnumSTATDATA_Next(This, celt, rgelt, pceltFetched);
if (hr == S_OK) *pceltFetched = celt; if (hr == S_OK) *pceltFetched = celt;
...@@ -1850,7 +1849,7 @@ void CALLBACK IAdviseSink_OnViewChange_Proxy( ...@@ -1850,7 +1849,7 @@ void CALLBACK IAdviseSink_OnViewChange_Proxy(
DWORD dwAspect, DWORD dwAspect,
LONG lindex) LONG lindex)
{ {
TRACE("(%p)->(%d, %d)\n", This, dwAspect, lindex); TRACE("%p, %ld, %ld.\n", This, dwAspect, lindex);
IAdviseSink_RemoteOnViewChange_Proxy(This, dwAspect, lindex); IAdviseSink_RemoteOnViewChange_Proxy(This, dwAspect, lindex);
} }
...@@ -1859,7 +1858,7 @@ HRESULT __RPC_STUB IAdviseSink_OnViewChange_Stub( ...@@ -1859,7 +1858,7 @@ HRESULT __RPC_STUB IAdviseSink_OnViewChange_Stub(
DWORD dwAspect, DWORD dwAspect,
LONG lindex) LONG lindex)
{ {
TRACE("(%p)->(%d, %d)\n", This, dwAspect, lindex); TRACE("%p, %ld, %ld.\n", This, dwAspect, lindex);
IAdviseSink_OnViewChange(This, dwAspect, lindex); IAdviseSink_OnViewChange(This, dwAspect, lindex);
return S_OK; return S_OK;
} }
...@@ -2054,7 +2053,7 @@ HRESULT CALLBACK IOleCache2_UpdateCache_Proxy( ...@@ -2054,7 +2053,7 @@ HRESULT CALLBACK IOleCache2_UpdateCache_Proxy(
DWORD grfUpdf, DWORD grfUpdf,
LPVOID pReserved) LPVOID pReserved)
{ {
TRACE("(%p, %p, 0x%08x, %p)\n", This, pDataObject, grfUpdf, pReserved); TRACE("%p, %p, %#lx, %p.\n", This, pDataObject, grfUpdf, pReserved);
return IOleCache2_RemoteUpdateCache_Proxy(This, pDataObject, grfUpdf, (LONG_PTR)pReserved); return IOleCache2_RemoteUpdateCache_Proxy(This, pDataObject, grfUpdf, (LONG_PTR)pReserved);
} }
...@@ -2064,7 +2063,7 @@ HRESULT __RPC_STUB IOleCache2_UpdateCache_Stub( ...@@ -2064,7 +2063,7 @@ HRESULT __RPC_STUB IOleCache2_UpdateCache_Stub(
DWORD grfUpdf, DWORD grfUpdf,
LONG_PTR pReserved) LONG_PTR pReserved)
{ {
TRACE("(%p, %p, 0x%08x, %li)\n", This, pDataObject, grfUpdf, pReserved); TRACE("%p, %p, %#lx, %Id.\n", This, pDataObject, grfUpdf, pReserved);
return IOleCache2_UpdateCache(This, pDataObject, grfUpdf, (void*)pReserved); return IOleCache2_UpdateCache(This, pDataObject, grfUpdf, (void*)pReserved);
} }
...@@ -2075,7 +2074,7 @@ HRESULT CALLBACK IEnumOLEVERB_Next_Proxy( ...@@ -2075,7 +2074,7 @@ HRESULT CALLBACK IEnumOLEVERB_Next_Proxy(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
ULONG fetched; ULONG fetched;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
if (!pceltFetched) pceltFetched = &fetched; if (!pceltFetched) pceltFetched = &fetched;
return IEnumOLEVERB_RemoteNext_Proxy(This, celt, rgelt, pceltFetched); return IEnumOLEVERB_RemoteNext_Proxy(This, celt, rgelt, pceltFetched);
} }
...@@ -2087,7 +2086,7 @@ HRESULT __RPC_STUB IEnumOLEVERB_Next_Stub( ...@@ -2087,7 +2086,7 @@ HRESULT __RPC_STUB IEnumOLEVERB_Next_Stub(
ULONG *pceltFetched) ULONG *pceltFetched)
{ {
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %p, %p)\n", This, celt, rgelt, pceltFetched); TRACE("%p, %lu, %p, %p.\n", This, celt, rgelt, pceltFetched);
*pceltFetched = 0; *pceltFetched = 0;
hr = IEnumOLEVERB_Next(This, celt, rgelt, pceltFetched); hr = IEnumOLEVERB_Next(This, celt, rgelt, pceltFetched);
if (hr == S_OK) *pceltFetched = celt; if (hr == S_OK) *pceltFetched = celt;
......
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