Replace ROUND_UP with ALIGN_UP_BY

svn path=/trunk/; revision=66618
This commit is contained in:
Timo Kreuzer 2015-03-08 23:37:06 +00:00
parent 16c191f8a8
commit ada7f6e85d
2 changed files with 2 additions and 7 deletions

View file

@ -156,8 +156,3 @@ HBITMAP NTAPI UserLoadImage(PCWSTR);
BOOL NTAPI W32kDosPathNameToNtPathName(PCWSTR, PUNICODE_STRING);
#define ROUND_DOWN(n, align) \
(((ULONG)n) & ~((align) - 1l))
#define ROUND_UP(n, align) \
ROUND_DOWN(((ULONG)n) + (align) - 1, (align))

View file

@ -347,7 +347,7 @@ SystemTimerProc(HWND hwnd,
case ID_EVENT_SYSTIMER_FLASHWIN:
{
FLASHWINFO fwi =
FLASHWINFO fwi =
{sizeof(FLASHWINFO),
UserHMGetHandle(pWnd),
FLASHW_SYSTIMER,0,0};
@ -602,7 +602,7 @@ InitTimerImpl(VOID)
ExInitializeFastMutex(Mutex);
BitmapBytes = ROUND_UP(NUM_WINDOW_LESS_TIMERS, sizeof(ULONG) * 8) / 8;
BitmapBytes = ALIGN_UP_BY(NUM_WINDOW_LESS_TIMERS, sizeof(ULONG) * 8) / 8;
WindowLessTimersBitMapBuffer = ExAllocatePoolWithTag(NonPagedPool, BitmapBytes, TAG_TIMERBMP);
if (WindowLessTimersBitMapBuffer == NULL)
{