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
b41ab972
Commit
b41ab972
authored
Jan 30, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Support the %I format modifier.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9c3dcdfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
printf.c
dlls/ntdll/printf.c
+6
-0
string.c
dlls/ntdll/tests/string.c
+1
-1
No files found.
dlls/ntdll/printf.c
View file @
b41ab972
...
...
@@ -561,6 +561,12 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, __ms_va_list valis
}
else
if
(
*
(
p
+
1
)
==
'3'
&&
*
(
p
+
2
)
==
'2'
)
p
+=
3
;
else
if
(
p
[
1
]
&&
strchr
(
"diouxX"
,
p
[
1
]
)
)
{
if
(
sizeof
(
void
*
)
==
8
)
flags
.
IntegerDouble
=
*
p
;
p
++
;
}
else
if
(
isDigit
(
*
(
p
+
1
))
||
*
(
p
+
1
)
==
0
)
break
;
else
...
...
dlls/ntdll/tests/string.c
View file @
b41ab972
...
...
@@ -1362,7 +1362,7 @@ static void test__snprintf(void)
{
res
=
p__snprintf
(
buffer
,
sizeof
(
buffer
),
"%Ix %d"
,
(
ULONG_PTR
)
0x1234567890
,
1
);
ok
(
res
==
strlen
(
buffer
),
"wrong size %d
\n
"
,
res
);
todo_wine
ok
(
!
strcmp
(
buffer
,
"1234567890 1"
),
"got %s
\n
"
,
debugstr_a
(
buffer
));
ok
(
!
strcmp
(
buffer
,
"1234567890 1"
),
"got %s
\n
"
,
debugstr_a
(
buffer
));
}
else
{
...
...
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