Rob Shearman : quartz: Fix testing of HRESULT types with not operator instead of comparing against S_OK .
Module: wine Branch: master Commit: 03a25b487f51cbe85e5ef9db56b7b47b9e29b432 URL: http://source.winehq.org/git/wine.git/?a=commit;h=03a25b487f51cbe85e5ef9db56... Author: Rob Shearman <robertshearman(a)gmail.com> Date: Sun Aug 17 18:31:32 2008 +0100 quartz: Fix testing of HRESULT types with not operator instead of comparing against S_OK. This makes it more obvious what the code is doing. --- dlls/quartz/control.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/quartz/control.c b/dlls/quartz/control.c index e719831..a2db24b 100644 --- a/dlls/quartz/control.c +++ b/dlls/quartz/control.c @@ -254,7 +254,7 @@ static HRESULT ForwardCmdSeek( PCRITICAL_SECTION crit_sect, IBaseFilter* from, S IMediaSeeking *seek = NULL; hr_local = IPin_QueryInterface( connected, &IID_IMediaSeeking, (void**)&seek ); - if (!hr_local) + if (hr_local == S_OK) { foundend = TRUE; if (crit_sect)
participants (1)
-
Alexandre Julliard