Commit a871830d authored by Anatoly Lyutin's avatar Anatoly Lyutin Committed by Alexandre Julliard

user32: Fix return value in ShowScrollBar according with test.

parent b6241e4a
...@@ -1998,6 +1998,9 @@ static BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, BOOL fShowH, BOOL fShowV ...@@ -1998,6 +1998,9 @@ static BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, BOOL fShowH, BOOL fShowV
*/ */
BOOL WINAPI ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow) BOOL WINAPI ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow)
{ {
if ( !hwnd )
return FALSE;
SCROLL_ShowScrollBar( hwnd, nBar, (nBar == SB_VERT) ? 0 : fShow, SCROLL_ShowScrollBar( hwnd, nBar, (nBar == SB_VERT) ? 0 : fShow,
(nBar == SB_HORZ) ? 0 : fShow ); (nBar == SB_HORZ) ? 0 : fShow );
return TRUE; return TRUE;
......
...@@ -123,10 +123,7 @@ static void scrollbar_test3(void) ...@@ -123,10 +123,7 @@ static void scrollbar_test3(void)
ok( !IsWindowVisible( hScroll ), "The scrollbar window should be visible\n" ); ok( !IsWindowVisible( hScroll ), "The scrollbar window should be visible\n" );
ret = ShowScrollBar( NULL, SB_CTL, TRUE ); ret = ShowScrollBar( NULL, SB_CTL, TRUE );
todo_wine ok( !ret, "The ShowScrollBar() should failed.\n" );
{
ok( !ret, "The ShowScrollBar() should failed.\n" );
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment