Alexandre Julliard : quartz: Avoid %ll printf formats.

Alexandre Julliard julliard at winehq.org
Thu Mar 27 07:21:40 CDT 2008


Module: wine
Branch: master
Commit: 6af76b3daa2be9567ce605b49c1bffa5df74044c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6af76b3daa2be9567ce605b49c1bffa5df74044c

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar 26 18:01:09 2008 +0100

quartz: Avoid %ll printf formats.

---

 dlls/quartz/acmwrapper.c |    4 ++--
 dlls/quartz/mpegsplit.c  |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/quartz/acmwrapper.c b/dlls/quartz/acmwrapper.c
index 4d5fbc9..d34fcc6 100644
--- a/dlls/quartz/acmwrapper.c
+++ b/dlls/quartz/acmwrapper.c
@@ -128,7 +128,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
 	assert(hr == S_OK);
 
         assert(ash.cbSrcLengthUsed);
-        TRACE("Sample start time: %lld.%03lld\n", (tStart/10000000), (tStart/10000)%1000);
+        TRACE("Sample start time: %u.%03u\n", (DWORD)(tStart/10000000), (DWORD)((tStart/10000)%1000));
         if (ash.cbSrcLengthUsed == cbSrcStream)
         {
             IMediaSample_SetTime(pOutSample, &tStart, &tStop);
@@ -146,7 +146,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
             ERR("No valid timestamp found\n");
             IMediaSample_SetTime(pOutSample, NULL, NULL);
         }
-        TRACE("Sample stop time: %lld.%03lld\n", (tStart/10000000), (tStart/10000)%1000);
+        TRACE("Sample stop time: %u.%03u\n", (DWORD)(tStart/10000000), (DWORD)((tStart/10000)%1000));
 
         hr = OutputPin_SendSample((OutputPin*)This->tf.ppPins[1], pOutSample);
         if (hr != S_OK && hr != VFW_E_NOT_CONNECTED) {
diff --git a/dlls/quartz/mpegsplit.c b/dlls/quartz/mpegsplit.c
index 0314462..ab4d371 100644
--- a/dlls/quartz/mpegsplit.c
+++ b/dlls/quartz/mpegsplit.c
@@ -291,7 +291,7 @@ static HRESULT FillBuffer(MPEGSplitterImpl *This, BYTE** fbuf, DWORD *flen)
     hr = copy_data(This->pCurrentSample, fbuf, flen, length);
     if (FAILED(hr))
     {
-        WARN("Couldn't set data size to %lld\n", length);
+        WARN("Couldn't set data size to %x%08x\n", (DWORD)(length >> 32), (DWORD)length);
         This->skipbytes = length;
         return hr;
     }
@@ -313,7 +313,7 @@ out_append:
         sampleduration = 0;
         IMediaSample_SetTime(This->pCurrentSample, &time, &This->position);
     }
-    TRACE("Media time: %lld.%03lld\n", (This->position/10000000), (This->position/10000)%1000);
+    TRACE("Media time: %u.%03u\n", (DWORD)(This->position/10000000), (DWORD)((This->position/10000)%1000));
 
     hr = OutputPin_SendSample(&pOutputPin->pin, This->pCurrentSample);
     if (FAILED(hr))
@@ -662,7 +662,7 @@ static HRESULT MPEGSplitter_pre_connect(IPin *iface, IPin *pConnectPin)
                 }
             }
             hr = S_OK;
-            TRACE("Duration: %lld seconds\n", duration / 10000000);
+            TRACE("Duration: %d seconds\n", (DWORD)(duration / 10000000));
             TRACE("Parsing took %u ms\n", GetTickCount() - ticks);
             break;
         }




More information about the wine-cvs mailing list