From 1f4002adb4077033d941c4326bd25d0ab462ba28 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 28 Jul 2011 22:37:37 -0700 Subject: [PATCH] Add and fix some UINT casts --- dsound_private.h | 8 ++++---- propset.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dsound_private.h b/dsound_private.h index 894a2f5..8fea6b3 100644 --- a/dsound_private.h +++ b/dsound_private.h @@ -48,19 +48,19 @@ extern int LogLevel; #ifdef DEBUG_INFO #define TRACE(fmt,args...) do { \ if(LogLevel >= 3) \ - fprintf(stderr, "%04x:trace:dsound:%s " fmt, GetCurrentThreadId(), __FUNCTION__, ##args); \ + fprintf(stderr, "%04x:trace:dsound:%s " fmt, (UINT)GetCurrentThreadId(), __FUNCTION__, ##args); \ } while(0) #define WARN(fmt,args...) do { \ if(LogLevel >= 2) \ - fprintf(stderr, "%04x:warn:dsound:%s " fmt, GetCurrentThreadId(), __FUNCTION__, ##args); \ + fprintf(stderr, "%04x:warn:dsound:%s " fmt, (UINT)GetCurrentThreadId(), __FUNCTION__, ##args); \ } while(0) #define FIXME(fmt,args...) do { \ if(LogLevel >= 1) \ - fprintf(stderr, "%04x:fixme:dsound:%s " fmt, GetCurrentThreadId(), __FUNCTION__, ##args); \ + fprintf(stderr, "%04x:fixme:dsound:%s " fmt, (UINT)GetCurrentThreadId(), __FUNCTION__, ##args); \ } while(0) #define ERR(fmt,args...) do { \ if(LogLevel >= 0) \ - fprintf(stderr, "%04x:err:dsound:%s " fmt, GetCurrentThreadId(), __FUNCTION__, ##args); \ + fprintf(stderr, "%04x:err:dsound:%s " fmt, (UINT)GetCurrentThreadId(), __FUNCTION__, ##args); \ } while(0) #else #define TRACE(args...) diff --git a/propset.c b/propset.c index f9e23de..e839b67 100644 --- a/propset.c +++ b/propset.c @@ -700,8 +700,8 @@ static HRESULT WINAPI IKsPrivatePropertySetImpl_Set( IKsPrivatePropertySetImpl *This = (IKsPrivatePropertySetImpl *)iface; FIXME("(%p)->(%s,%u,%p,%u,%p,%u), stub!\n",This, - debugstr_guid(guidPropSet),(unsigned int)dwPropID, - pInstanceData,(unsigned int)cbInstanceData,pPropData,(unsigned int)cbPropData); + debugstr_guid(guidPropSet),(UINT)dwPropID, + pInstanceData,(UINT)cbInstanceData,pPropData,(UINT)cbPropData); return E_PROP_ID_UNSUPPORTED; } @@ -712,7 +712,7 @@ static HRESULT WINAPI IKsPrivatePropertySetImpl_QuerySupport( PULONG pTypeSupport ) { IKsPrivatePropertySetImpl *This = (IKsPrivatePropertySetImpl *)iface; - TRACE("(%p,%s,%u,%p)\n",This,debugstr_guid(guidPropSet),(unsigned int)dwPropID,pTypeSupport); + TRACE("(%p,%s,%u,%p)\n",This,debugstr_guid(guidPropSet),(UINT)dwPropID,pTypeSupport); if ( IsEqualGUID( &DSPROPSETID_DirectSoundDevice, guidPropSet) ) { switch (dwPropID) { @@ -741,7 +741,7 @@ static HRESULT WINAPI IKsPrivatePropertySetImpl_QuerySupport( *pTypeSupport = KSPROPERTY_SUPPORT_GET; return S_OK; default: - FIXME("unsupported ID: %u\n",(unsigned int)dwPropID); + FIXME("unsupported ID: %u\n",(UINT)dwPropID); break; } } else { -- 2.11.4.GIT