Michael Stefaniuc : amstream: Remove useless cast to self.

Alexandre Julliard julliard at winehq.org
Tue Feb 12 16:36:36 CST 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Mon Feb 11 22:34:56 2019 +0100

amstream: Remove useless cast to self.

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

---

 dlls/amstream/mediastream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/amstream/mediastream.c b/dlls/amstream/mediastream.c
index bc61597..4463eaa 100644
--- a/dlls/amstream/mediastream.c
+++ b/dlls/amstream/mediastream.c
@@ -1543,7 +1543,7 @@ static HRESULT audiostreamsample_create(IAudioMediaStream *parent, IAudioData *a
     object->parent = (IMediaStream*)parent;
     object->audio_data = audio_data;
 
-    *audio_stream_sample = (IAudioStreamSample*)&object->IAudioStreamSample_iface;
+    *audio_stream_sample = &object->IAudioStreamSample_iface;
 
     return S_OK;
 }




More information about the wine-cvs mailing list