quartz: Remove unneeded shadow variables

André Hentschel nerv at dawncrow.de
Tue Apr 17 17:11:46 CDT 2012


---
 dlls/quartz/filtermapper.c |    2 --
 dlls/quartz/waveparser.c   |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c
index 8950caa..bf17fe4 100644
--- a/dlls/quartz/filtermapper.c
+++ b/dlls/quartz/filtermapper.c
@@ -1058,7 +1058,6 @@ static HRESULT WINAPI FilterMapper3_EnumMatchingFilters(
                 while (IEnumMoniker_Next(pEnum, 1, &pMoniker, NULL) == S_OK)
                 {
                     IPropertyBag * pPropBag = NULL;
-                    VARIANT var;
                     BYTE *pData = NULL;
                     REGFILTER2 rf2;
                     DWORD i;
@@ -1066,7 +1065,6 @@ static HRESULT WINAPI FilterMapper3_EnumMatchingFilters(
                     BOOL bOutputMatch = !bOutputNeeded;
 
                     ZeroMemory(&rf2, sizeof(rf2));
-                    VariantInit(&var);
 
                     hrSub = IMoniker_BindToStorage(pMoniker, NULL, NULL, &IID_IPropertyBag, (LPVOID*)&pPropBag);
 
diff --git a/dlls/quartz/waveparser.c b/dlls/quartz/waveparser.c
index a7bce6f..18a2ad5 100644
--- a/dlls/quartz/waveparser.c
+++ b/dlls/quartz/waveparser.c
@@ -153,7 +153,6 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample, DWORD_PTR
         for (i = 0; i < This->Parser.cStreams; i++)
         {
             IPin* ppin;
-            HRESULT hr;
 
             TRACE("Send End Of Stream to output pin %u\n", i);
 
-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list