From d9f755875bb52d454dbfb843ba132ede9aa4dea1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 7 Apr 2007 07:05:33 -0700 Subject: [PATCH] quartz: Fix ALIGN macros. --- dlls/quartz/pin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c index 48cedfc5848..b7d9a52feff 100644 --- a/dlls/quartz/pin.c +++ b/dlls/quartz/pin.c @@ -34,8 +34,8 @@ static const IPinVtbl OutputPin_Vtbl; static const IMemInputPinVtbl MemInputPin_Vtbl; static const IPinVtbl PullPin_Vtbl; -#define ALIGNDOWN(value,boundary) ((value) & ~(boundary-1)) -#define ALIGNUP(value,boundary) (ALIGNDOWN(value - 1, boundary) + boundary) +#define ALIGNDOWN(value,boundary) ((value)/(boundary)*(boundary)) +#define ALIGNUP(value,boundary) (ALIGNDOWN((value)+(boundary)-1, (boundary))) static inline InputPin *impl_from_IMemInputPin( IMemInputPin *iface ) {