https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3a9fe2b1bf5e40c0053e3…
commit 3a9fe2b1bf5e40c0053e370b97428ac78186637d
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Oct 27 21:16:02 2018 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Oct 27 21:16:02 2018 +0900
[WIN32SS][USER32] Simplify CloseWindow (#986)
---
win32ss/user/user32/windows/window.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/win32ss/user/user32/windows/window.c b/win32ss/user/user32/windows/window.c
index 1f8f5ca4cf..cad886129b 100644
--- a/win32ss/user/user32/windows/window.c
+++ b/win32ss/user/user32/windows/window.c
@@ -127,9 +127,7 @@ ChildWindowFromPointEx(HWND hwndParent,
BOOL WINAPI
CloseWindow(HWND hWnd)
{
- PostMessageW(hWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
-
- return ValidateHwnd(hWnd) != NULL;
+ return PostMessageW(hWnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
}
FORCEINLINE