Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f65e415d
Commit
f65e415d
authored
Mar 18, 2005
by
C. Scott Ananian
Committed by
Alexandre Julliard
Mar 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPDOWN_GetBuddyInt should not fail when the control is empty.
parent
523d94ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
updown.c
dlls/comctl32/tests/updown.c
+1
-1
updown.c
dlls/comctl32/updown.c
+4
-1
No files found.
dlls/comctl32/tests/updown.c
View file @
f65e415d
...
...
@@ -77,7 +77,7 @@ static void test_updown_control (void)
hWndUpDown
=
create_updown_control
(
hWndEdit
);
/* before we set a value, it should be '0' */
num
=
SendMessage
(
hWndUpDown
,
UDM_GETPOS
,
0
,
0L
);
todo_wine
{
ok
(
num
==
0
,
"Expected 0 got %d
\n
"
,
num
);
}
ok
(
num
==
0
,
"Expected 0 got %d
\n
"
,
num
);
/* set a value, check it. */
SendMessage
(
hWndUpDown
,
UDM_SETPOS
,
0L
,
MAKELONG
(
1
,
0
));
num
=
SendMessage
(
hWndUpDown
,
UDM_GETPOS
,
0
,
0L
);
...
...
dlls/comctl32/updown.c
View file @
f65e415d
...
...
@@ -273,7 +273,10 @@ static BOOL UPDOWN_GetBuddyInt (UPDOWN_INFO *infoPtr)
if
(
newVal
<
0
)
return
FALSE
;
}
else
{
/* we have a regular window, so will get the text */
if
(
!
GetWindowTextW
(
infoPtr
->
Buddy
,
txt
,
COUNT_OF
(
txt
)))
return
FALSE
;
/* note that a zero-length string is a legitimate value for 'txt',
* and ought to result in a successful conversion to '0'. */
if
(
GetWindowTextW
(
infoPtr
->
Buddy
,
txt
,
COUNT_OF
(
txt
))
<
0
)
return
FALSE
;
sep
=
UPDOWN_GetThousandSep
();
...
...
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