user32: Fix return value in ShowScrollBar according with test.
This commit is contained in:
parent
b6241e4ad8
commit
a871830dd3
@ -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)
|
|||||||
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" );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user