From 1a18b797eb0f209eb04a0c02c3619756eb3598d4 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 5 Dec 2008 07:47:42 +0100 Subject: [PATCH] quartz: Don't cast zero. --- dlls/quartz/systemclock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/quartz/systemclock.c b/dlls/quartz/systemclock.c index 88ac7adeb0..a97199389c 100644 --- a/dlls/quartz/systemclock.c +++ b/dlls/quartz/systemclock.c @@ -260,7 +260,7 @@ static HRESULT WINAPI SystemClockImpl_AdviseTime(IReferenceClock* iface, REFEREN TRACE("(%p, 0x%s, 0x%s, %ld, %p)\n", This, wine_dbgstr_longlong(rtBaseTime), wine_dbgstr_longlong(rtStreamTime), hEvent, pdwAdviseCookie); - if ((HEVENT) 0 == hEvent) { + if (!hEvent) { return E_INVALIDARG; } if (0 >= rtBaseTime + rtStreamTime) { @@ -296,7 +296,7 @@ static HRESULT WINAPI SystemClockImpl_AdvisePeriodic(IReferenceClock* iface, REF TRACE("(%p, 0x%s, 0x%s, %ld, %p)\n", This, wine_dbgstr_longlong(rtStartTime), wine_dbgstr_longlong(rtPeriodTime), hSemaphore, pdwAdviseCookie); - if ((HSEMAPHORE) 0 == hSemaphore) { + if (!hSemaphore) { return E_INVALIDARG; } if (0 >= rtStartTime || 0 >= rtPeriodTime) { -- 2.32.0.93.g670b81a890