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
32bb8d90
Commit
32bb8d90
authored
Mar 31, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix handling of unsigned chars in scanf format.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a8389a2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
scanf.h
dlls/msvcrt/scanf.h
+1
-1
scanf.c
dlls/msvcrt/tests/scanf.c
+4
-0
No files found.
dlls/msvcrt/scanf.h
View file @
32bb8d90
...
...
@@ -699,7 +699,7 @@ _FUNCTION_ {
* a matching non-white-space character. */
else
{
/* check for character match */
if
(
nch
==
*
format
)
{
if
(
nch
==
(
unsigned
char
)
*
format
)
{
nch
=
_GETC_
(
file
);
}
else
break
;
}
...
...
dlls/msvcrt/tests/scanf.c
View file @
32bb8d90
...
...
@@ -251,6 +251,10 @@ static void test_sscanf( void )
ok
(
ret
==
2
,
"got %d
\n
"
,
ret
);
ok
(
!
strcmp
(
buffer
,
"test"
),
"buf %s
\n
"
,
buffer
);
ok
(
!
strcmp
(
buffer1
,
"value
\xda
"
),
"buf %s
\n
"
,
buffer1
);
ret
=
sscanf
(
"
\x81
test"
,
"
\x81
%s"
,
buffer
);
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
ok
(
!
strcmp
(
buffer
,
"test"
),
"buf = %s
\n
"
,
buffer
);
}
static
void
test_sscanf_s
(
void
)
...
...
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