Skip to content
Snippets Groups Projects
Commit bd815b23 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Hugo Beauzée-Luyssen
Browse files

winstore: remove redundant test

If the QueryInterface method succeeds, then the pointer cannot be NULL.
parent 5d5282c2
No related branches found
No related tags found
Loading
Pipeline #142478 passed with stage
in 36 minutes and 43 seconds
......@@ -172,8 +172,7 @@ static void WaitForAudioClient(audio_output_t *aout)
}
IAudioClient2 *audioClient2;
if (SUCCEEDED(IAudioClient_QueryInterface(sys->client, &IID_IAudioClient2, (void**)&audioClient2))
&& audioClient2)
if (SUCCEEDED(IAudioClient_QueryInterface(sys->client, &IID_IAudioClient2, (void**)&audioClient2)))
{
// "BackgroundCapableMedia" does not work in UWP
AudioClientProperties props = (AudioClientProperties) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment