dxdiagn: Win64 printf format warning fixes.

Michael Stefaniuc mstefani at redhat.de
Fri Oct 6 16:01:04 CDT 2006


---
 dlls/dxdiagn/Makefile.in   |    1 -
 dlls/dxdiagn/container.c   |    8 ++++----
 dlls/dxdiagn/dxdiag_main.c |    2 +-
 dlls/dxdiagn/provider.c    |    4 ++--
 4 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/dlls/dxdiagn/Makefile.in b/dlls/dxdiagn/Makefile.in
index be84046..e2cf511 100644
--- a/dlls/dxdiagn/Makefile.in
+++ b/dlls/dxdiagn/Makefile.in
@@ -5,7 +5,6 @@ VPATH     = @srcdir@
 MODULE    = dxdiagn.dll
 IMPORTS   = version ole32 oleaut32 user32 advapi32 kernel32
 EXTRALIBS = -lstrmiids -ldxguid -luuid
-EXTRADEFS = -DWINE_NO_LONG_AS_INT
 
 C_SRCS = \
 	container.c \
diff --git a/dlls/dxdiagn/container.c b/dlls/dxdiagn/container.c
index 5feb7c5..184840b 100644
--- a/dlls/dxdiagn/container.c
+++ b/dlls/dxdiagn/container.c
@@ -48,7 +48,7 @@ static ULONG WINAPI IDxDiagContainerImpl
     IDxDiagContainerImpl *This = (IDxDiagContainerImpl *)iface;
     ULONG refCount = InterlockedIncrement(&This->ref);
 
-    TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
+    TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
 
     DXDIAGN_LockModule();
 
@@ -59,7 +59,7 @@ static ULONG WINAPI IDxDiagContainerImpl
     IDxDiagContainerImpl *This = (IDxDiagContainerImpl *)iface;
     ULONG refCount = InterlockedDecrement(&This->ref);
 
-    TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
+    TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
 
     if (!refCount) {
         HeapFree(GetProcessHeap(), 0, This);
@@ -86,7 +86,7 @@ static HRESULT WINAPI IDxDiagContainerIm
   IDxDiagContainerImpl_SubContainer* p = NULL;
   DWORD i = 0;
   
-  TRACE("(%p, %lu, %s, %lu)\n", iface, dwIndex, debugstr_w(pwszContainer), cchContainer);
+  TRACE("(%p, %u, %s, %u)\n", iface, dwIndex, debugstr_w(pwszContainer), cchContainer);
 
   if (NULL == pwszContainer) {
     return E_INVALIDARG;
@@ -182,7 +182,7 @@ static HRESULT WINAPI IDxDiagContainerIm
   IDxDiagContainerImpl_Property* p = NULL;
   DWORD i = 0;
   
-  FIXME("(%p, %lu, %s, %lu)\n", iface, dwIndex, debugstr_w(pwszPropName), cchPropName);
+  FIXME("(%p, %u, %s, %u)\n", iface, dwIndex, debugstr_w(pwszPropName), cchPropName);
 
   if (NULL == pwszPropName) {
     return E_INVALIDARG;
diff --git a/dlls/dxdiagn/dxdiag_main.c b/dlls/dxdiagn/dxdiag_main.c
index 2279e0c..d202ae9 100644
--- a/dlls/dxdiagn/dxdiag_main.c
+++ b/dlls/dxdiagn/dxdiag_main.c
@@ -30,7 +30,7 @@ LONG DXDIAGN_refCount = 0;
 /* At process attach */
 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
 {
-  TRACE("%p,%lx,%p\n", hInstDLL, fdwReason, lpvReserved);
+  TRACE("%p,%x,%p\n", hInstDLL, fdwReason, lpvReserved);
   if (fdwReason == DLL_PROCESS_ATTACH) {
     DisableThreadLibraryCalls(hInstDLL);    
   }
diff --git a/dlls/dxdiagn/provider.c b/dlls/dxdiagn/provider.c
index 56b2fc1..64425a2 100644
--- a/dlls/dxdiagn/provider.c
+++ b/dlls/dxdiagn/provider.c
@@ -54,7 +54,7 @@ static ULONG WINAPI IDxDiagProviderImpl_
     IDxDiagProviderImpl *This = (IDxDiagProviderImpl *)iface;
     ULONG refCount = InterlockedIncrement(&This->ref);
 
-    TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1);
+    TRACE("(%p)->(ref before=%u)\n", This, refCount - 1);
 
     DXDIAGN_LockModule();
 
@@ -65,7 +65,7 @@ static ULONG WINAPI IDxDiagProviderImpl_
     IDxDiagProviderImpl *This = (IDxDiagProviderImpl *)iface;
     ULONG refCount = InterlockedDecrement(&This->ref);
 
-    TRACE("(%p)->(ref before=%lu)\n", This, refCount + 1);
+    TRACE("(%p)->(ref before=%u)\n", This, refCount + 1);
 
     if (!refCount) {
         HeapFree(GetProcessHeap(), 0, This);
-- 
1.4.2.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061006/d0302f42/attachment.pgp


More information about the wine-patches mailing list