winepulse: Use FAILED() instead of non-zero result check.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2022-02-14 14:50:47 +03:00 committed by Alexandre Julliard
parent fae276c44a
commit 820c77319d

View file

@ -344,7 +344,7 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient
This->parent = dev;
hr = CoCreateFreeThreadedMarshaler((IUnknown*)&This->IAudioClient3_iface, &This->marshal);
if (hr) {
if (FAILED(hr)) {
HeapFree(GetProcessHeap(), 0, This);
return hr;
}