Maarten Lankhorst : quartz: Change longlong printfs.

Alexandre Julliard julliard at winehq.org
Mon Apr 21 07:46:37 CDT 2008


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Fri Apr 18 22:23:19 2008 -0700

quartz: Change longlong printfs.

---

 dlls/quartz/dsoundrender.c |    4 +++-
 dlls/quartz/filtergraph.c  |    3 ++-
 dlls/quartz/waveparser.c   |    2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index 9bcb417..4a90bb3 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -263,7 +263,9 @@ static HRESULT DSoundRender_Sample(LPVOID iface, IMediaSample * pSample)
         ERR("Cannot get sample time (%x)\n", hr);
 
     if (This->rtLastStop != tStart && (IMediaSample_IsDiscontinuity(pSample) == S_FALSE))
-        FIXME("Unexpected discontinuity: Last: %lld, tStart: %lld\n", This->rtLastStop, tStart);
+        FIXME("Unexpected discontinuity: Last: %u.%03u, tStart: %u.%03u\n",
+            (DWORD)(This->rtLastStop / 10000000), (DWORD)((This->rtLastStop / 10000)%1000),
+            (DWORD)(tStart / 10000000), (DWORD)((tStart / 10000)%1000));
     This->rtLastStop = tStop;
 
     if (IMediaSample_IsPreroll(pSample) == S_OK)
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index ee31068..c4b31f7 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -2079,7 +2079,8 @@ static HRESULT WINAPI MediaSeeking_GetCurrentPosition(IMediaSeeking *iface,
     else
         *pCurrent = This->position;
     LeaveCriticalSection(&This->cs);
-    TRACE("Time: %lld.%03lld\n", *pCurrent / 10000000, (*pCurrent / 10000)%1000);
+
+    TRACE("Time: %u.%03u\n", (DWORD)(*pCurrent / 10000000), (DWORD)((*pCurrent / 10000)%1000));
 
     return S_OK;
 }
diff --git a/dlls/quartz/waveparser.c b/dlls/quartz/waveparser.c
index 5aef9ef..8f51c8f 100644
--- a/dlls/quartz/waveparser.c
+++ b/dlls/quartz/waveparser.c
@@ -393,7 +393,7 @@ static HRESULT WAVEParser_InputPin_PreConnect(IPin * iface, IPin * pConnectPin)
 
     pWAVEParser->Parser.mediaSeeking.llCurrent = 0;
     pWAVEParser->Parser.mediaSeeking.llStop = pWAVEParser->Parser.mediaSeeking.llDuration = bytepos_to_duration(pWAVEParser, pWAVEParser->EndOfFile);
-    TRACE("Duration: %lld seconds\n", pWAVEParser->Parser.mediaSeeking.llDuration / (LONGLONG)10000000);
+    TRACE("Duration: %u seconds\n", (DWORD)(pWAVEParser->Parser.mediaSeeking.llDuration / (LONGLONG)10000000));
 
     This->rtStop = pWAVEParser->EndOfFile;
     This->rtStart = pWAVEParser->StartOfFile;




More information about the wine-cvs mailing list