From 03a25b487f51cbe85e5ef9db56b7b47b9e29b432 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 17 Aug 2008 18:31:32 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/control.c b/dlls/quartz/control.c index e7198319875..a2db24be786 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)