mirror of
https://github.com/reactos/reactos.git
synced 2025-06-13 16:38:31 +00:00
[WIN32K]
Replace ROUND_UP with ALIGN_UP_BY svn path=/trunk/; revision=66618
This commit is contained in:
parent
16c191f8a8
commit
ada7f6e85d
2 changed files with 2 additions and 7 deletions
|
@ -156,8 +156,3 @@ HBITMAP NTAPI UserLoadImage(PCWSTR);
|
||||||
|
|
||||||
BOOL NTAPI W32kDosPathNameToNtPathName(PCWSTR, PUNICODE_STRING);
|
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))
|
|
||||||
|
|
|
@ -347,7 +347,7 @@ SystemTimerProc(HWND hwnd,
|
||||||
|
|
||||||
case ID_EVENT_SYSTIMER_FLASHWIN:
|
case ID_EVENT_SYSTIMER_FLASHWIN:
|
||||||
{
|
{
|
||||||
FLASHWINFO fwi =
|
FLASHWINFO fwi =
|
||||||
{sizeof(FLASHWINFO),
|
{sizeof(FLASHWINFO),
|
||||||
UserHMGetHandle(pWnd),
|
UserHMGetHandle(pWnd),
|
||||||
FLASHW_SYSTIMER,0,0};
|
FLASHW_SYSTIMER,0,0};
|
||||||
|
@ -602,7 +602,7 @@ InitTimerImpl(VOID)
|
||||||
|
|
||||||
ExInitializeFastMutex(Mutex);
|
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);
|
WindowLessTimersBitMapBuffer = ExAllocatePoolWithTag(NonPagedPool, BitmapBytes, TAG_TIMERBMP);
|
||||||
if (WindowLessTimersBitMapBuffer == NULL)
|
if (WindowLessTimersBitMapBuffer == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue