Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a871830d
Commit
a871830d
authored
Feb 22, 2008
by
Anatoly Lyutin
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix return value in ShowScrollBar according with test.
parent
b6241e4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
scroll.c
dlls/user32/scroll.c
+3
-0
scroll.c
dlls/user32/tests/scroll.c
+1
-4
No files found.
dlls/user32/scroll.c
View file @
a871830d
...
@@ -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
;
...
...
dlls/user32/tests/scroll.c
View file @
a871830d
...
@@ -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
"
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment