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
ec7ba645
Commit
ec7ba645
authored
Feb 04, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Handle non Japanese case in ConvertUnknownJapaneseToUnicode.
parent
8b812b41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
mlang.c
dlls/mlang/mlang.c
+16
-7
No files found.
dlls/mlang/mlang.c
View file @
ec7ba645
...
...
@@ -799,22 +799,30 @@ static UINT ConvertUnknownJapaneseToUnicode(LPCSTR input, DWORD count,
int
code
=
DetectJapaneseCode
(
input
,
count
);
TRACE
(
"Japanese code %i
\n
"
,
code
);
if
(
code
==
932
)
switch
(
code
)
{
case
0
:
if
(
output
)
rc
=
MultiByteToWideChar
(
CP_ACP
,
0
,
input
,
count
,
output
,
out_count
);
else
rc
=
MultiByteToWideChar
(
CP_ACP
,
0
,
input
,
count
,
0
,
0
);
break
;
case
932
:
if
(
output
)
rc
=
MultiByteToWideChar
(
932
,
0
,
input
,
count
,
output
,
out_count
);
else
rc
=
MultiByteToWideChar
(
932
,
0
,
input
,
count
,
0
,
0
);
}
else
if
(
code
==
51932
)
{
break
;
case
51932
:
if
(
output
)
rc
=
MultiByteToWideChar
(
20932
,
0
,
input
,
count
,
output
,
out_count
);
else
rc
=
MultiByteToWideChar
(
20932
,
0
,
input
,
count
,
0
,
0
);
}
else
if
(
code
==
50220
)
{
break
;
case
50220
:
sjis_string
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
);
rc
=
ConvertJIS2SJIS
(
input
,
count
,
sjis_string
);
if
(
rc
)
...
...
@@ -826,6 +834,7 @@ static UINT ConvertUnknownJapaneseToUnicode(LPCSTR input, DWORD count,
rc
=
MultiByteToWideChar
(
932
,
0
,
sjis_string
,
rc
,
0
,
0
);
}
HeapFree
(
GetProcessHeap
(),
0
,
sjis_string
);
break
;
}
return
rc
;
}
...
...
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