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

Alexandre Julliard julliard at winehq.org
Tue Feb 15 16:07:19 CST 2022


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Feb 14 14:50:47 2022 +0300

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

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winepulse.drv/mmdevdrv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c
index 35a66e18d8a..e3d5ea91cf5 100644
--- a/dlls/winepulse.drv/mmdevdrv.c
+++ b/dlls/winepulse.drv/mmdevdrv.c
@@ -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;
     }




More information about the wine-cvs mailing list