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
7535b367
Commit
7535b367
authored
Mar 21, 2012
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Mar 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix _mbcjistojms off by one error.
parent
c1558bb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
mbcs.c
dlls/msvcrt/mbcs.c
+1
-1
string.c
dlls/msvcrt/tests/string.c
+0
-5
No files found.
dlls/msvcrt/mbcs.c
View file @
7535b367
...
...
@@ -461,7 +461,7 @@ unsigned int CDECL _mbcjistojms(unsigned int c)
else
c
+=
0x7d
;
if
(
LOBYTE
(
c
)
>
0x7F
)
if
(
LOBYTE
(
c
)
>
=
0x7F
)
c
+=
0x1
;
c
=
(((
HIBYTE
(
c
)
-
0x21
)
/
2
+
0x81
)
<<
8
)
|
LOBYTE
(
c
);
...
...
dlls/msvcrt/tests/string.c
View file @
7535b367
...
...
@@ -877,11 +877,6 @@ static void test_mbcjisjms(void)
unsigned
int
ret
,
exp
;
ret
=
_mbcjistojms
(
jisjms
[
j
][
0
]);
exp
=
(
cp
[
i
]
==
932
)
?
jisjms
[
j
][
1
]
:
jisjms
[
j
][
0
];
if
(
LOBYTE
(
exp
)
==
0x80
&&
cp
[
i
]
==
932
)
{
todo_wine
ok
(
ret
==
exp
,
"Expected 0x%x, got 0x%x (0x%x, codepage=%d)
\n
"
,
exp
,
ret
,
jisjms
[
j
][
0
],
cp
[
i
]);
continue
;
}
ok
(
ret
==
exp
,
"Expected 0x%x, got 0x%x (0x%x, codepage=%d)
\n
"
,
exp
,
ret
,
jisjms
[
j
][
0
],
cp
[
i
]);
}
...
...
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