Commit 95aa1bab authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

devenum: Build without -DWINE_NO_LONG_TYPES.

parent 75b8dcd2
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = devenum.dll MODULE = devenum.dll
IMPORTS = dmoguids strmiids uuid ole32 oleaut32 avicap32 winmm user32 advapi32 dsound msdmo IMPORTS = dmoguids strmiids uuid ole32 oleaut32 avicap32 winmm user32 advapi32 dsound msdmo
DELAYIMPORTS = msvfw32 DELAYIMPORTS = msvfw32
......
...@@ -769,7 +769,7 @@ static HRESULT WINAPI devenum_factory_CreateClassEnumerator(ICreateDevEnum *ifac ...@@ -769,7 +769,7 @@ static HRESULT WINAPI devenum_factory_CreateClassEnumerator(ICreateDevEnum *ifac
HRESULT hr; HRESULT hr;
HKEY key; HKEY key;
TRACE("iface %p, class %s, out %p, flags %#x.\n", iface, debugstr_guid(class), out, flags); TRACE("iface %p, class %s, out %p, flags %#lx.\n", iface, debugstr_guid(class), out, flags);
if (!out) if (!out)
return E_POINTER; return E_POINTER;
......
...@@ -137,8 +137,8 @@ static HRESULT WINAPI property_bag_Read(IPropertyBag *iface, ...@@ -137,8 +137,8 @@ static HRESULT WINAPI property_bag_Read(IPropertyBag *iface,
} }
else if (!wcscmp(name, L"FilterData")) else if (!wcscmp(name, L"FilterData"))
{ {
unsigned int count = 1, input_count, output_count, i;
DMO_PARTIAL_MEDIATYPE *types = NULL, *new_array; DMO_PARTIAL_MEDIATYPE *types = NULL, *new_array;
ULONG count = 1, input_count, output_count, i;
REGFILTERPINS2 reg_pins[2] = {{0}}; REGFILTERPINS2 reg_pins[2] = {{0}};
REGFILTER2 reg_filter = {0}; REGFILTER2 reg_filter = {0};
REGPINTYPES *reg_types; REGPINTYPES *reg_types;
...@@ -287,7 +287,7 @@ static HRESULT WINAPI property_bag_Read(IPropertyBag *iface, ...@@ -287,7 +287,7 @@ static HRESULT WINAPI property_bag_Read(IPropertyBag *iface,
return S_OK; return S_OK;
} }
default: default:
FIXME("Unhandled type %#x.\n", type); FIXME("Unhandled type %#lx.\n", type);
free(data); free(data);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -396,26 +396,27 @@ static HRESULT WINAPI moniker_QueryInterface(IMoniker *iface, REFIID riid, void ...@@ -396,26 +396,27 @@ static HRESULT WINAPI moniker_QueryInterface(IMoniker *iface, REFIID riid, void
static ULONG WINAPI moniker_AddRef(IMoniker *iface) static ULONG WINAPI moniker_AddRef(IMoniker *iface)
{ {
struct moniker *This = impl_from_IMoniker(iface); struct moniker *moniker = impl_from_IMoniker(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG refcount = InterlockedIncrement(&moniker->ref);
TRACE("(%p) ref=%d\n", This, ref); TRACE("%p increasing refcount to %lu.\n", moniker, refcount);
return ref; return refcount;
} }
static ULONG WINAPI moniker_Release(IMoniker *iface) static ULONG WINAPI moniker_Release(IMoniker *iface)
{ {
struct moniker *This = impl_from_IMoniker(iface); struct moniker *This = impl_from_IMoniker(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG refcount = InterlockedDecrement(&This->ref);
TRACE("(%p) ref=%d\n", This, ref); TRACE("%p decreasing refcount to %lu.\n", This, refcount);
if (ref == 0) { if (!refcount)
{
free(This->name); free(This->name);
free(This); free(This);
} }
return ref; return refcount;
} }
static HRESULT WINAPI moniker_GetClassID(IMoniker *iface, CLSID *pClassID) static HRESULT WINAPI moniker_GetClassID(IMoniker *iface, CLSID *pClassID)
...@@ -558,7 +559,10 @@ static HRESULT WINAPI moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc, ...@@ -558,7 +559,10 @@ static HRESULT WINAPI moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc,
static HRESULT WINAPI moniker_Reduce(IMoniker *iface, IBindCtx *pbc, static HRESULT WINAPI moniker_Reduce(IMoniker *iface, IBindCtx *pbc,
DWORD dwReduceHowFar, IMoniker **ppmkToLeft, IMoniker **ppmkReduced) DWORD dwReduceHowFar, IMoniker **ppmkToLeft, IMoniker **ppmkReduced)
{ {
TRACE("(%p)->(%p, %d, %p, %p)\n", iface, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced); struct moniker *moniker = impl_from_IMoniker(iface);
TRACE("moniker %p, bind_ctx %p, how_far %#lx, left %p, reduced %p.\n",
moniker, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
if (ppmkToLeft) if (ppmkToLeft)
*ppmkToLeft = NULL; *ppmkToLeft = NULL;
...@@ -848,22 +852,22 @@ static HRESULT WINAPI enum_moniker_QueryInterface(IEnumMoniker *iface, REFIID ri ...@@ -848,22 +852,22 @@ static HRESULT WINAPI enum_moniker_QueryInterface(IEnumMoniker *iface, REFIID ri
static ULONG WINAPI enum_moniker_AddRef(IEnumMoniker *iface) static ULONG WINAPI enum_moniker_AddRef(IEnumMoniker *iface)
{ {
EnumMonikerImpl *This = impl_from_IEnumMoniker(iface); EnumMonikerImpl *enumerator = impl_from_IEnumMoniker(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG refcount = InterlockedIncrement(&enumerator->ref);
TRACE("(%p) ref=%d\n", This, ref); TRACE("%p increasing refcount to %lu.\n", enumerator, refcount);
return ref; return refcount;
} }
static ULONG WINAPI enum_moniker_Release(IEnumMoniker *iface) static ULONG WINAPI enum_moniker_Release(IEnumMoniker *iface)
{ {
EnumMonikerImpl *This = impl_from_IEnumMoniker(iface); EnumMonikerImpl *This = impl_from_IEnumMoniker(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG refcount = InterlockedDecrement(&This->ref);
TRACE("(%p) ref=%d\n", This, ref); TRACE("%p decreasing refcount to %lu.\n", This, refcount);
if (!ref) if (!refcount)
{ {
if (This->dmo_enum) if (This->dmo_enum)
IEnumDMO_Release(This->dmo_enum); IEnumDMO_Release(This->dmo_enum);
...@@ -874,7 +878,7 @@ static ULONG WINAPI enum_moniker_Release(IEnumMoniker *iface) ...@@ -874,7 +878,7 @@ static ULONG WINAPI enum_moniker_Release(IEnumMoniker *iface)
free(This); free(This);
return 0; return 0;
} }
return ref; return refcount;
} }
static struct moniker *get_dmo_moniker(EnumMonikerImpl *enum_moniker) static struct moniker *get_dmo_moniker(EnumMonikerImpl *enum_moniker)
...@@ -907,7 +911,7 @@ static HRESULT WINAPI enum_moniker_Next(IEnumMoniker *iface, ULONG celt, IMonike ...@@ -907,7 +911,7 @@ static HRESULT WINAPI enum_moniker_Next(IEnumMoniker *iface, ULONG celt, IMonike
ULONG fetched = 0; ULONG fetched = 0;
HKEY hkey; HKEY hkey;
TRACE("(%p)->(%d, %p, %p)\n", iface, celt, rgelt, pceltFetched); TRACE("enumerator %p, count %lu, monikers %p, ret_count %p.\n", This, celt, rgelt, pceltFetched);
while (fetched < celt) while (fetched < celt)
{ {
...@@ -944,7 +948,7 @@ static HRESULT WINAPI enum_moniker_Next(IEnumMoniker *iface, ULONG celt, IMonike ...@@ -944,7 +948,7 @@ static HRESULT WINAPI enum_moniker_Next(IEnumMoniker *iface, ULONG celt, IMonike
rgelt[fetched++] = &moniker->IMoniker_iface; rgelt[fetched++] = &moniker->IMoniker_iface;
} }
TRACE("-- fetched %d\n", fetched); TRACE("Returning %lu monikers.\n", fetched);
if (pceltFetched) if (pceltFetched)
*pceltFetched = fetched; *pceltFetched = fetched;
...@@ -959,7 +963,7 @@ static HRESULT WINAPI enum_moniker_Skip(IEnumMoniker *iface, ULONG celt) ...@@ -959,7 +963,7 @@ static HRESULT WINAPI enum_moniker_Skip(IEnumMoniker *iface, ULONG celt)
{ {
EnumMonikerImpl *This = impl_from_IEnumMoniker(iface); EnumMonikerImpl *This = impl_from_IEnumMoniker(iface);
TRACE("(%p)->(%d)\n", iface, celt); TRACE("enumerator %p, count %lu.\n", This, celt);
while (celt--) while (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