[WIN32SS][USER32] Simplify CloseWindow (#986)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 27 Oct 2018 12:16:02 +0000 (21:16 +0900)
committerGitHub <noreply@github.com>
Sat, 27 Oct 2018 12:16:02 +0000 (21:16 +0900)
win32ss/user/user32/windows/window.c

index 1f8f5ca..cad8861 100644 (file)
@@ -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