mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +00:00
[WIN32K:NTUSER] Code formatting only.
This commit is contained in:
parent
9ab21d67ae
commit
f644a50cd7
1 changed files with 24 additions and 20 deletions
|
@ -254,29 +254,33 @@ IntEnableWindow( HWND hWnd, BOOL bEnable )
|
||||||
HWND* FASTCALL
|
HWND* FASTCALL
|
||||||
IntWinListChildren(PWND Window)
|
IntWinListChildren(PWND Window)
|
||||||
{
|
{
|
||||||
PWND Child;
|
PWND Child;
|
||||||
HWND *List;
|
HWND *List;
|
||||||
UINT Index, NumChildren = 0;
|
UINT Index, NumChildren = 0;
|
||||||
|
|
||||||
if (!Window) return NULL;
|
if (!Window) return NULL;
|
||||||
|
|
||||||
for (Child = Window->spwndChild; Child; Child = Child->spwndNext)
|
for (Child = Window->spwndChild; Child; Child = Child->spwndNext)
|
||||||
++NumChildren;
|
{
|
||||||
|
++NumChildren;
|
||||||
|
}
|
||||||
|
|
||||||
List = ExAllocatePoolWithTag(PagedPool, (NumChildren + 1) * sizeof(HWND), USERTAG_WINDOWLIST);
|
List = ExAllocatePoolWithTag(PagedPool, (NumChildren + 1) * sizeof(HWND), USERTAG_WINDOWLIST);
|
||||||
if(!List)
|
if(!List)
|
||||||
{
|
{
|
||||||
ERR("Failed to allocate memory for children array\n");
|
ERR("Failed to allocate memory for children array\n");
|
||||||
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
for (Child = Window->spwndChild, Index = 0;
|
|
||||||
Child != NULL;
|
|
||||||
Child = Child->spwndNext, ++Index)
|
|
||||||
List[Index] = Child->head.h;
|
|
||||||
List[Index] = NULL;
|
|
||||||
|
|
||||||
return List;
|
Index = 0;
|
||||||
|
for (Child = Window->spwndChild; Child; Child = Child->spwndNext)
|
||||||
|
{
|
||||||
|
List[Index++] = Child->head.h;
|
||||||
|
}
|
||||||
|
List[Index] = NULL;
|
||||||
|
|
||||||
|
return List;
|
||||||
}
|
}
|
||||||
|
|
||||||
HWND* FASTCALL
|
HWND* FASTCALL
|
||||||
|
@ -2682,7 +2686,7 @@ BOOLEAN co_UserDestroyWindow(PVOID Object)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust last active.
|
/* Adjust last active */
|
||||||
if ((pwndTemp = Window->spwndOwner))
|
if ((pwndTemp = Window->spwndOwner))
|
||||||
{
|
{
|
||||||
while (pwndTemp->spwndOwner)
|
while (pwndTemp->spwndOwner)
|
||||||
|
|
Loading…
Reference in a new issue