dmime: Remove unused variable

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Jan 20 12:13:56 CST 2007


This should have the side benefit of fixing Coverity CID-404, which relates to
the use before initialisation of the variable "rtCurtime".

-- Andy.
---
Changelog:
    dmime: Remove unused variable.

diff -urN a/dlls/dmime/performance.c b/dlls/dmime/performance.c
--- a/dlls/dmime/performance.c	2006-10-10 19:19:59.000000000 +0100
+++ b/dlls/dmime/performance.c	2007-01-20 18:00:05.000000000 +0000
@@ -71,7 +71,6 @@
   DWORD timeOut = INFINITE;
   MSG msg;
   HRESULT hr;
-  REFERENCE_TIME rtLastTime;
   REFERENCE_TIME rtCurTime;
   DMUS_PMSGItem* it = NULL;
   DMUS_PMSGItem* cur = NULL;
@@ -84,7 +83,6 @@
     timeOut = INFINITE;
 
     EnterCriticalSection(&This->safe);
-    rtLastTime = rtCurTime;
     hr = IDirectMusicPerformance8_GetTime((IDirectMusicPerformance8*) This, &rtCurTime, NULL);
     if (FAILED(hr)) {
       goto outrefresh;



More information about the wine-patches mailing list