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
f897a912
Commit
f897a912
authored
Dec 26, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/updown: Fix formatting for hex mode.
parent
46194d39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
updown.c
dlls/comctl32/updown.c
+4
-2
No files found.
dlls/comctl32/updown.c
View file @
f897a912
...
...
@@ -309,7 +309,9 @@ static BOOL UPDOWN_GetBuddyInt (UPDOWN_INFO *infoPtr)
*/
static
BOOL
UPDOWN_SetBuddyInt
(
const
UPDOWN_INFO
*
infoPtr
)
{
WCHAR
fmt
[
3
]
=
{
'%'
,
'd'
,
'\0'
};
static
const
WCHAR
fmt_hex
[]
=
{
'0'
,
'x'
,
'%'
,
'0'
,
'4'
,
'X'
,
0
};
static
const
WCHAR
fmt_dec_oct
[]
=
{
'%'
,
'd'
,
'\0'
};
const
WCHAR
*
fmt
;
WCHAR
txt
[
20
],
txt_old
[
20
]
=
{
0
};
int
len
;
...
...
@@ -324,7 +326,7 @@ static BOOL UPDOWN_SetBuddyInt (const UPDOWN_INFO *infoPtr)
}
/* Regular window, so set caption to the number */
if
(
infoPtr
->
Base
==
16
)
fmt
[
1
]
=
'X'
;
fmt
=
(
infoPtr
->
Base
==
16
)
?
fmt_hex
:
fmt_dec_oct
;
len
=
wsprintfW
(
txt
,
fmt
,
infoPtr
->
CurVal
);
...
...
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