Nikolay Sivov : strmbase: Avoid using HRESULT codes as BOOL value ( PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 16 09:03:44 CDT 2015
Module: wine
Branch: master
Commit: a59e3e0f4ef9b3232d3cd24f237f48f4e6920003
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a59e3e0f4ef9b3232d3cd24f237f48f4e6920003
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Oct 16 10:17:59 2015 +0300
strmbase: Avoid using HRESULT codes as BOOL value (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/strmbase/outputqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/strmbase/outputqueue.c b/dlls/strmbase/outputqueue.c
index cbcd964..36960e3 100644
--- a/dlls/strmbase/outputqueue.c
+++ b/dlls/strmbase/outputqueue.c
@@ -101,7 +101,7 @@ HRESULT WINAPI OutputQueue_Construct(
EnterCriticalSection(&This->csQueue);
if (bAuto && pInputPin->pMemInputPin)
- threaded = IMemInputPin_ReceiveCanBlock(pInputPin->pMemInputPin);
+ threaded = IMemInputPin_ReceiveCanBlock(pInputPin->pMemInputPin) == S_OK;
else
threaded = bQueue;
More information about the wine-cvs
mailing list