Michael Stefaniuc : dmsynth: Drop "synth" from the synth_sink field.

Alexandre Julliard julliard at winehq.org
Wed Jan 19 15:57:47 CST 2022


Module: wine
Branch: master
Commit: 3292bc29657af0a2c7bb06617426fab4a43a8cdd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3292bc29657af0a2c7bb06617426fab4a43a8cdd

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Jan 19 18:48:47 2022 +0100

dmsynth: Drop "synth" from the synth_sink field.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dmsynth/dmsynth_private.h |  2 +-
 dlls/dmsynth/synth.c           | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/dmsynth/dmsynth_private.h b/dlls/dmsynth/dmsynth_private.h
index bcc866e879e..32a79f65dd3 100644
--- a/dlls/dmsynth/dmsynth_private.h
+++ b/dlls/dmsynth/dmsynth_private.h
@@ -65,7 +65,7 @@ struct IDirectMusicSynth8Impl {
     DMUS_PORTCAPS pCaps;
     BOOL fActive;
     IReferenceClock* pLatencyClock;
-    IDirectMusicSynthSink *synth_sink;
+    IDirectMusicSynthSink *sink;
 };
 
 /*****************************************************************************
diff --git a/dlls/dmsynth/synth.c b/dlls/dmsynth/synth.c
index 19789b5a256..4d71bc738c1 100644
--- a/dlls/dmsynth/synth.c
+++ b/dlls/dmsynth/synth.c
@@ -320,7 +320,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetLatencyClock(IDirectMusicSynth8
     if (!clock)
         return E_POINTER;
 
-    if (!This->synth_sink)
+    if (!This->sink)
         return DMUS_E_NOSYNTHSINK;
 
     *clock = This->pLatencyClock;
@@ -341,16 +341,16 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Activate(IDirectMusicSynth8 *iface,
 }
 
 static HRESULT WINAPI IDirectMusicSynth8Impl_SetSynthSink(IDirectMusicSynth8 *iface,
-        IDirectMusicSynthSink *synth_sink)
+        IDirectMusicSynthSink *sink)
 {
     IDirectMusicSynth8Impl *This = impl_from_IDirectMusicSynth8(iface);
 
-    TRACE("(%p)->(%p)\n", iface, synth_sink);
+    TRACE("(%p)->(%p)\n", iface, sink);
 
-    This->synth_sink = synth_sink;
+    This->sink = sink;
 
-    if (synth_sink)
-        return IDirectMusicSynthSink_GetLatencyClock(synth_sink, &This->pLatencyClock);
+    if (sink)
+        return IDirectMusicSynthSink_GetLatencyClock(sink, &This->pLatencyClock);
 
     return S_OK;
 }




More information about the wine-cvs mailing list