https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8c4b7b0747b49e4ee8bbd5fc27c964a41450d9f2

commit 8c4b7b0747b49e4ee8bbd5fc27c964a41450d9f2
Author:     Giannis Adamopoulos <gadamopou...@reactos.org>
AuthorDate: Mon Jan 29 17:51:06 2018 +0200
Commit:     Giannis Adamopoulos <gadamopou...@reactos.org>
CommitDate: Mon Jan 29 17:51:06 2018 +0200

    [COMCTL32] toolbar: Use szBarPadding.cy as the default top margin
---
 dll/win32/comctl32/toolbar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dll/win32/comctl32/toolbar.c b/dll/win32/comctl32/toolbar.c
index c2befb228c..949eadb8d7 100644
--- a/dll/win32/comctl32/toolbar.c
+++ b/dll/win32/comctl32/toolbar.c
@@ -256,7 +256,7 @@ static inline int default_top_margin(const TOOLBAR_INFO 
*infoPtr)
 {
 #ifdef __REACTOS__
     if (infoPtr->iVersion == 6)
-        return 0;
+        return infoPtr->szBarPadding.cy;
 #endif
     return (infoPtr->dwStyle & TBSTYLE_FLAT ? 0 : TOP_BORDER);
 }

Reply via email to