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
1309e11e
Commit
1309e11e
authored
Nov 02, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Improve printf %I format support.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
007f1b9a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
printf.h
dlls/msvcrt/printf.h
+3
-3
printf.c
dlls/msvcrt/tests/printf.c
+3
-0
No files found.
dlls/msvcrt/printf.h
View file @
1309e11e
...
...
@@ -509,10 +509,10 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
p
+=
3
;
}
else
if
(
*
(
p
+
1
)
==
'3'
&&
*
(
p
+
2
)
==
'2'
)
p
+=
3
;
else
if
(
isdigit
(
*
(
p
+
1
))
||
!*
(
p
+
1
))
break
;
else
else
if
(
p
[
1
]
&&
strchr
(
"diouxX"
,
p
[
1
]))
flags
.
IntegerNative
=
*
p
++
;
else
break
;
}
else
if
(
*
p
==
'w'
)
flags
.
WideString
=
*
p
++
;
#if _MSVCR_VER >= 140
...
...
dlls/msvcrt/tests/printf.c
View file @
1309e11e
...
...
@@ -159,6 +159,8 @@ static void test_sprintf( void )
" 00000000000000000000000000000000000000000000000000000000000000000000000000000001"
,
0
,
INT_ARG
,
1
},
{
"%I"
,
"I"
,
0
,
INT_ARG
,
1
},
{
"%Iq"
,
"Iq"
,
0
,
INT_ARG
,
1
},
{
"%Ihd"
,
"Ihd"
,
0
,
INT_ARG
,
1
},
{
"%I0d"
,
"I0d"
,
0
,
INT_ARG
,
1
},
{
"%I64D"
,
"D"
,
0
,
ULONGLONG_ARG
,
0
,
-
1
},
{
"%zx"
,
"1"
,
"zx"
,
TODO_FLAG
|
INT_ARG
,
1
},
...
...
@@ -256,6 +258,7 @@ static void test_sprintf( void )
int
i
,
x
,
r
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
memset
(
buffer
,
'x'
,
sizeof
(
buffer
));
switch
(
tests
[
i
].
type
&
0xff
)
{
case
NO_ARG
:
r
=
p_sprintf
(
buffer
,
tests
[
i
].
format
);
...
...
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