Module: wine Branch: master Commit: d9f755875bb52d454dbfb843ba132ede9aa4dea1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d9f755875bb52d454dbfb843ba...
Author: Chris Robinson chris.kcat@gmail.com Date: Sat Apr 7 07:05:33 2007 -0700
quartz: Fix ALIGN macros.
---
dlls/quartz/pin.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c index 48cedfc..b7d9a52 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 ) {