Commit 36d88d92 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

devenum: Win64 printf format warning fixes.

parent 44072183
...@@ -5,7 +5,6 @@ VPATH = @srcdir@ ...@@ -5,7 +5,6 @@ VPATH = @srcdir@
MODULE = devenum.dll MODULE = devenum.dll
IMPORTS = ole32 oleaut32 avicap32 winmm user32 advapi32 kernel32 IMPORTS = ole32 oleaut32 avicap32 winmm user32 advapi32 kernel32
EXTRALIBS = -lstrmiids -luuid EXTRALIBS = -lstrmiids -luuid
EXTRADEFS = -DWINE_NO_LONG_AS_INT
C_SRCS = \ C_SRCS = \
createdevenum.c \ createdevenum.c \
......
...@@ -110,7 +110,7 @@ HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator( ...@@ -110,7 +110,7 @@ HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
HKEY hbasekey; HKEY hbasekey;
CreateDevEnumImpl *This = (CreateDevEnumImpl *)iface; CreateDevEnumImpl *This = (CreateDevEnumImpl *)iface;
TRACE("(%p)->(%s, %p, %lx)\n\tDeviceClass:\t%s\n", This, debugstr_guid(clsidDeviceClass), ppEnumMoniker, dwFlags, debugstr_guid(clsidDeviceClass)); TRACE("(%p)->(%s, %p, %x)\n\tDeviceClass:\t%s\n", This, debugstr_guid(clsidDeviceClass), ppEnumMoniker, dwFlags, debugstr_guid(clsidDeviceClass));
if (!ppEnumMoniker) if (!ppEnumMoniker)
return E_POINTER; return E_POINTER;
...@@ -243,7 +243,7 @@ static HRESULT DEVENUM_CreateSpecialCategories() ...@@ -243,7 +243,7 @@ static HRESULT DEVENUM_CreateSpecialCategories()
if (!LoadStringW(DEVENUM_hInstance, IDS_DEVENUM_DS, szDSoundNameFormat, sizeof(szDSoundNameFormat)/sizeof(szDSoundNameFormat[0])-1)) if (!LoadStringW(DEVENUM_hInstance, IDS_DEVENUM_DS, szDSoundNameFormat, sizeof(szDSoundNameFormat)/sizeof(szDSoundNameFormat[0])-1))
{ {
ERR("Couldn't get string resource (GetLastError() is %ld)\n", GetLastError()); ERR("Couldn't get string resource (GetLastError() is %d)\n", GetLastError());
return HRESULT_FROM_WIN32(GetLastError()); return HRESULT_FROM_WIN32(GetLastError());
} }
......
...@@ -48,7 +48,7 @@ const WCHAR clsid_keyname[6] = { 'C', 'L', 'S', 'I', 'D', 0 }; ...@@ -48,7 +48,7 @@ const WCHAR clsid_keyname[6] = { 'C', 'L', 'S', 'I', 'D', 0 };
*/ */
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
{ {
TRACE("%p 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad); TRACE("%p 0x%x %p\n", hinstDLL, fdwReason, fImpLoad);
switch(fdwReason) { switch(fdwReason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
...@@ -382,6 +382,6 @@ static void DEVENUM_RegisterQuartz() ...@@ -382,6 +382,6 @@ static void DEVENUM_RegisterQuartz()
{ {
HRESULT hr = pDllRegisterServer(); HRESULT hr = pDllRegisterServer();
if (FAILED(hr)) if (FAILED(hr))
ERR("Failed to register Quartz. Error was 0x%lx)\n", hr); ERR("Failed to register Quartz. Error was 0x%x)\n", hr);
} }
} }
...@@ -129,7 +129,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read( ...@@ -129,7 +129,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
{ {
res = E_INVALIDARG; /* assume we cannot coerce into right type */ res = E_INVALIDARG; /* assume we cannot coerce into right type */
TRACE("Read %ld bytes (%s)\n", received, type == REG_SZ ? debugstr_w((LPWSTR)pData) : "binary data"); TRACE("Read %d bytes (%s)\n", received, type == REG_SZ ? debugstr_w((LPWSTR)pData) : "binary data");
switch (type) switch (type)
{ {
...@@ -151,7 +151,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read( ...@@ -151,7 +151,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
} }
break; break;
case REG_DWORD: case REG_DWORD:
TRACE("REG_DWORD: %lx\n", *(DWORD *)pData); TRACE("REG_DWORD: %x\n", *(DWORD *)pData);
switch (V_VT(pVar)) switch (V_VT(pVar))
{ {
case VT_EMPTY: case VT_EMPTY:
...@@ -170,7 +170,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read( ...@@ -170,7 +170,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
void * pArrayElements; void * pArrayElements;
bound.lLbound = 0; bound.lLbound = 0;
bound.cElements = received; bound.cElements = received;
TRACE("REG_BINARY: len = %ld\n", received); TRACE("REG_BINARY: len = %d\n", received);
switch (V_VT(pVar)) switch (V_VT(pVar))
{ {
case VT_EMPTY: case VT_EMPTY:
...@@ -194,12 +194,12 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read( ...@@ -194,12 +194,12 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Read(
} }
} }
if (res == E_INVALIDARG) if (res == E_INVALIDARG)
FIXME("Variant type %x not supported for regtype %lx\n", V_VT(pVar), type); FIXME("Variant type %x not supported for regtype %x\n", V_VT(pVar), type);
} }
HeapFree(GetProcessHeap(), 0, pData); HeapFree(GetProcessHeap(), 0, pData);
TRACE("<- %lx\n", res); TRACE("<- %x\n", res);
return res; return res;
} }
...@@ -226,7 +226,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write( ...@@ -226,7 +226,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write(
break; break;
case VT_I4: case VT_I4:
case VT_UI4: case VT_UI4:
TRACE("writing %lu\n", V_UNION(pVar, ulVal)); TRACE("writing %u\n", V_UNION(pVar, ulVal));
lpData = (LPVOID)&V_UNION(pVar, ulVal); lpData = (LPVOID)&V_UNION(pVar, ulVal);
dwType = REG_DWORD; dwType = REG_DWORD;
cbData = sizeof(DWORD); cbData = sizeof(DWORD);
...@@ -239,7 +239,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write( ...@@ -239,7 +239,7 @@ static HRESULT WINAPI DEVENUM_IPropertyBag_Write(
res = SafeArrayGetLBound(V_UNION(pVar, parray), 1, &lLbound); res = SafeArrayGetLBound(V_UNION(pVar, parray), 1, &lLbound);
res = SafeArrayGetUBound(V_UNION(pVar, parray), 1, &lUbound); res = SafeArrayGetUBound(V_UNION(pVar, parray), 1, &lUbound);
cbData = (lUbound - lLbound + 1) /* * sizeof(BYTE)*/; cbData = (lUbound - lLbound + 1) /* * sizeof(BYTE)*/;
TRACE("cbData: %ld\n", cbData); TRACE("cbData: %d\n", cbData);
res = SafeArrayAccessData(V_UNION(pVar, parray), &lpData); res = SafeArrayAccessData(V_UNION(pVar, parray), &lpData);
break; break;
} }
...@@ -449,7 +449,7 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_BindToObject( ...@@ -449,7 +449,7 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_BindToObject(
IPropertyBag_Release(pProp); IPropertyBag_Release(pProp);
} }
TRACE("<- 0x%lx\n", res); TRACE("<- 0x%x\n", res);
return res; return res;
} }
...@@ -486,7 +486,7 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_Reduce( ...@@ -486,7 +486,7 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_Reduce(
IMoniker** ppmkToLeft, IMoniker** ppmkToLeft,
IMoniker** ppmkReduced) IMoniker** ppmkReduced)
{ {
TRACE("(%p, %ld, %p, %p)\n", pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced); TRACE("(%p, %d, %p, %p)\n", pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
if (ppmkToLeft) if (ppmkToLeft)
*ppmkToLeft = NULL; *ppmkToLeft = NULL;
...@@ -730,7 +730,7 @@ static ULONG WINAPI DEVENUM_IEnumMoniker_AddRef(LPENUMMONIKER iface) ...@@ -730,7 +730,7 @@ static ULONG WINAPI DEVENUM_IEnumMoniker_AddRef(LPENUMMONIKER iface)
EnumMonikerImpl *This = (EnumMonikerImpl *)iface; EnumMonikerImpl *This = (EnumMonikerImpl *)iface;
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)->() AddRef from %ld\n", iface, ref - 1); TRACE("(%p)->() AddRef from %d\n", iface, ref - 1);
return ref; return ref;
} }
...@@ -743,7 +743,7 @@ static ULONG WINAPI DEVENUM_IEnumMoniker_Release(LPENUMMONIKER iface) ...@@ -743,7 +743,7 @@ static ULONG WINAPI DEVENUM_IEnumMoniker_Release(LPENUMMONIKER iface)
EnumMonikerImpl *This = (EnumMonikerImpl *)iface; EnumMonikerImpl *This = (EnumMonikerImpl *)iface;
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->() Release from %ld\n", iface, ref + 1); TRACE("(%p)->() Release from %d\n", iface, ref + 1);
if (!ref) if (!ref)
{ {
...@@ -763,7 +763,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Next(LPENUMMONIKER iface, ULONG celt, ...@@ -763,7 +763,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Next(LPENUMMONIKER iface, ULONG celt,
MediaCatMoniker * pMoniker; MediaCatMoniker * pMoniker;
EnumMonikerImpl *This = (EnumMonikerImpl *)iface; EnumMonikerImpl *This = (EnumMonikerImpl *)iface;
TRACE("(%p)->(%ld, %p, %p)\n", iface, celt, rgelt, pceltFetched); TRACE("(%p)->(%d, %p, %p)\n", iface, celt, rgelt, pceltFetched);
while (fetched < celt) while (fetched < celt)
{ {
...@@ -787,7 +787,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Next(LPENUMMONIKER iface, ULONG celt, ...@@ -787,7 +787,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Next(LPENUMMONIKER iface, ULONG celt,
This->index += fetched; This->index += fetched;
TRACE("-- fetched %ld\n", fetched); TRACE("-- fetched %d\n", fetched);
if (pceltFetched) if (pceltFetched)
*pceltFetched = fetched; *pceltFetched = fetched;
...@@ -802,7 +802,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Skip(LPENUMMONIKER iface, ULONG celt) ...@@ -802,7 +802,7 @@ static HRESULT WINAPI DEVENUM_IEnumMoniker_Skip(LPENUMMONIKER iface, ULONG celt)
{ {
EnumMonikerImpl *This = (EnumMonikerImpl *)iface; EnumMonikerImpl *This = (EnumMonikerImpl *)iface;
TRACE("(%p)->(%ld)\n", iface, celt); TRACE("(%p)->(%d)\n", iface, celt);
This->index += celt; This->index += celt;
......
...@@ -149,7 +149,7 @@ static HRESULT WINAPI DEVENUM_IParseDisplayName_ParseDisplayName( ...@@ -149,7 +149,7 @@ static HRESULT WINAPI DEVENUM_IParseDisplayName_ParseDisplayName(
CoTaskMemFree(pszClass); CoTaskMemFree(pszClass);
TRACE("-- returning: %lx\n", res); TRACE("-- returning: %x\n", res);
return res; return res;
} }
......
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