https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f644a50cd77492dc06615a...
commit f644a50cd77492dc06615a632ca500a1687aa63b Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sat Sep 1 23:39:38 2018 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sat Sep 1 23:46:17 2018 +0200
[WIN32K:NTUSER] Code formatting only. --- win32ss/user/ntuser/window.c | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-)
diff --git a/win32ss/user/ntuser/window.c b/win32ss/user/ntuser/window.c index 95ffa02fb7..40a7459dd2 100644 --- a/win32ss/user/ntuser/window.c +++ b/win32ss/user/ntuser/window.c @@ -254,29 +254,33 @@ IntEnableWindow( HWND hWnd, BOOL bEnable ) HWND* FASTCALL IntWinListChildren(PWND Window) { - PWND Child; - HWND *List; - UINT Index, NumChildren = 0; + PWND Child; + HWND *List; + UINT Index, NumChildren = 0;
- if (!Window) return NULL; + if (!Window) return NULL;
- for (Child = Window->spwndChild; Child; Child = Child->spwndNext) - ++NumChildren; + for (Child = Window->spwndChild; Child; Child = Child->spwndNext) + { + ++NumChildren; + }
- List = ExAllocatePoolWithTag(PagedPool, (NumChildren + 1) * sizeof(HWND), USERTAG_WINDOWLIST); - if(!List) - { - ERR("Failed to allocate memory for children array\n"); - EngSetLastError(ERROR_NOT_ENOUGH_MEMORY); - return NULL; - } - for (Child = Window->spwndChild, Index = 0; - Child != NULL; - Child = Child->spwndNext, ++Index) - List[Index] = Child->head.h; - List[Index] = NULL; + List = ExAllocatePoolWithTag(PagedPool, (NumChildren + 1) * sizeof(HWND), USERTAG_WINDOWLIST); + if(!List) + { + ERR("Failed to allocate memory for children array\n"); + EngSetLastError(ERROR_NOT_ENOUGH_MEMORY); + return NULL; + } + + Index = 0; + for (Child = Window->spwndChild; Child; Child = Child->spwndNext) + { + List[Index++] = Child->head.h; + } + List[Index] = NULL;
- return List; + return List; }
HWND* FASTCALL @@ -2682,7 +2686,7 @@ BOOLEAN co_UserDestroyWindow(PVOID Object) } }
- // Adjust last active. + /* Adjust last active */ if ((pwndTemp = Window->spwndOwner)) { while (pwndTemp->spwndOwner)