user32: Fix return value in ShowScrollBar according with test.

This commit is contained in:
Anatoly Lyutin 2008-02-22 17:03:32 +03:00 committed by Alexandre Julliard
parent b6241e4ad8
commit a871830dd3
2 changed files with 4 additions and 4 deletions

View File

@ -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)
{
if ( !hwnd )
return FALSE;
SCROLL_ShowScrollBar( hwnd, nBar, (nBar == SB_VERT) ? 0 : fShow,
(nBar == SB_HORZ) ? 0 : fShow );
return TRUE;

View File

@ -123,10 +123,7 @@ static void scrollbar_test3(void)
ok( !IsWindowVisible( hScroll ), "The scrollbar window should be visible\n" );
ret = ShowScrollBar( NULL, SB_CTL, TRUE );
todo_wine
{
ok( !ret, "The ShowScrollBar() should failed.\n" );
}
ok( !ret, "The ShowScrollBar() should failed.\n" );
}