https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6b2e79d0672d4228366cf43c04a17916d2990cca

commit 6b2e79d0672d4228366cf43c04a17916d2990cca
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Sat Feb 27 22:59:00 2021 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Sat Feb 27 22:59:00 2021 +0900

    [SDK][INCLUDE] layout.h: Delete an assertion for window style
    
    WS_SIZEBOX or WS_THICKFRAME. CORE-9281
---
 sdk/include/reactos/layout.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sdk/include/reactos/layout.h b/sdk/include/reactos/layout.h
index 7cddf11cd11..3403ba06b3e 100644
--- a/sdk/include/reactos/layout.h
+++ b/sdk/include/reactos/layout.h
@@ -237,9 +237,7 @@ LayoutInit(HWND hwndParent, const LAYOUT_INFO *pLayouts, 
INT cLayouts)
     }
     memcpy(pData->m_pLayouts, pLayouts, cb);
 
-    /* NOTE: The parent window must have initially WS_SIZEBOX style. */
     assert(IsWindow(hwndParent));
-    assert(GetWindowLongPtrW(hwndParent, GWL_STYLE) & WS_SIZEBOX);
 
     pData->m_hwndParent = hwndParent;
 

Reply via email to