Module: wine Branch: master Commit: ad1ba07880a234b43089423c925b5179641bedf8 URL: https://gitlab.winehq.org/wine/wine/-/commit/ad1ba07880a234b43089423c925b517...
Author: Michael Stefaniuc mstefani@winehq.org Date: Mon Nov 13 19:33:30 2023 +0100
dmsynth: Remove superfluous casts to self.
---
dlls/dmsynth/synthsink.c | 2 +- dlls/dmsynth/tests/dmsynth.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/dmsynth/synthsink.c b/dlls/dmsynth/synthsink.c index d0a89358652..9263ff56349 100644 --- a/dlls/dmsynth/synthsink.c +++ b/dlls/dmsynth/synthsink.c @@ -320,7 +320,7 @@ static HRESULT synth_sink_activate(struct synth_sink *This) else { synth_sink_get_format(This, &format); - desc.lpwfxFormat = (WAVEFORMATEX *)&format; + desc.lpwfxFormat = &format; desc.dwBufferBytes = format.nAvgBytesPerSec; if (FAILED(hr = IDirectMusicSynthSink_GetDesiredBufferSize(iface, &desc.dwBufferBytes))) ERR("Failed to get desired buffer size, hr %#lx\n", hr); diff --git a/dlls/dmsynth/tests/dmsynth.c b/dlls/dmsynth/tests/dmsynth.c index ad09a651094..ad9f706aada 100644 --- a/dlls/dmsynth/tests/dmsynth.c +++ b/dlls/dmsynth/tests/dmsynth.c @@ -1134,11 +1134,11 @@ static void test_IDirectMusicSynth(void) ok(hr == S_OK, "got %#lx\n", hr); hr = IReferenceClock_GetTime(latency_clock, &time); ok(hr == S_OK, "got %#lx\n", hr); - hr = IDirectMusicBuffer_GetRawBufferPtr(buffer, (BYTE **)&raw); + hr = IDirectMusicBuffer_GetRawBufferPtr(buffer, &raw); ok(hr == S_OK, "got %#lx\n", hr); hr = IDirectMusicBuffer_GetUsedBytes(buffer, &len); ok(hr == S_OK, "got %#lx\n", hr); - hr = IDirectMusicSynth_PlayBuffer(synth, time, (BYTE *)raw, len); + hr = IDirectMusicSynth_PlayBuffer(synth, time, raw, len); ok(hr == S_OK, "got %#lx\n", hr); IDirectMusicBuffer_Release(buffer); IReferenceClock_Release(latency_clock);