dmsynth: Remove superfluous casts to self.

This commit is contained in:
Michael Stefaniuc 2023-11-13 19:33:30 +01:00 committed by Alexandre Julliard
parent b3382916c6
commit ad1ba07880
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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);