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
250e6d9f
Commit
250e6d9f
authored
Oct 03, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4c9e8c67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
mlang.c
dlls/mlang/mlang.c
+4
-13
No files found.
dlls/mlang/mlang.c
View file @
250e6d9f
...
...
@@ -392,8 +392,6 @@ static const MIME_CP_INFO vietnamese_cp[] =
"windows-1258"
,
"windows-1258"
,
"windows-1258"
}
};
static
const
WCHAR
asciiW
[]
=
{
'a'
,
's'
,
'c'
,
'i'
,
'i'
,
0
};
static
const
MIME_CP_INFO
western_cp
[]
=
{
{
"IBM EBCDIC (US-Canada)"
,
...
...
@@ -446,7 +444,7 @@ static const MIME_CP_INFO western_cp[] =
20127
,
MIMECONTF_MAILNEWS
|
MIMECONTF_IMPORT
|
MIMECONTF_EXPORT
|
MIMECONTF_SAVABLE_MAILNEWS
|
MIMECONTF_VALID
|
MIMECONTF_VALID_NLS
|
MIMECONTF_MIME_LATEST
,
"us-ascii"
,
"us-ascii"
,
"us-ascii"
,
asciiW
},
"us-ascii"
,
"us-ascii"
,
"us-ascii"
,
L"ascii"
},
{
"Western European (ISO)"
,
28591
,
MIMECONTF_MAILNEWS
|
MIMECONTF_BROWSER
|
MIMECONTF_IMPORT
|
MIMECONTF_SAVABLE_MAILNEWS
|
MIMECONTF_SAVABLE_BROWSER
|
...
...
@@ -3934,14 +3932,7 @@ static BOOL register_codepages(void)
WCHAR
buf
[
32
];
LSTATUS
status
;
static
const
WCHAR
db_key_nameW
[]
=
{
'M'
,
'I'
,
'M'
,
'E'
,
'\\'
,
'D'
,
'a'
,
't'
,
'a'
,
'b'
,
'a'
,
's'
,
'e'
,
'\\'
,
'C'
,
'o'
,
'd'
,
'e'
,
'p'
,
'a'
,
'g'
,
'e'
,
0
};
static
const
WCHAR
familyW
[]
=
{
'F'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
0
};
static
const
WCHAR
formatW
[]
=
{
'%'
,
'u'
,
0
};
status
=
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
db_key_nameW
,
&
db_key
);
status
=
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
L"MIME
\\
Database
\\
Codepage"
,
&
db_key
);
if
(
status
!=
ERROR_SUCCESS
)
return
FALSE
;
...
...
@@ -3949,7 +3940,7 @@ static BOOL register_codepages(void)
{
for
(
info
=
family
->
mime_cp_info
;
info
<
family
->
mime_cp_info
+
family
->
number_of_cp
;
info
++
)
{
swprintf
(
buf
,
ARRAY_SIZE
(
buf
),
formatW
,
info
->
cp
);
swprintf
(
buf
,
ARRAY_SIZE
(
buf
),
L"%u"
,
info
->
cp
);
status
=
RegCreateKeyW
(
db_key
,
buf
,
&
key
);
if
(
status
!=
ERROR_SUCCESS
)
continue
;
...
...
@@ -3966,7 +3957,7 @@ static BOOL register_codepages(void)
}
else
{
RegSetValueExW
(
key
,
familyW
,
0
,
REG_DWORD
,
(
BYTE
*
)
&
family
->
family_codepage
,
RegSetValueExW
(
key
,
L"Family"
,
0
,
REG_DWORD
,
(
BYTE
*
)
&
family
->
family_codepage
,
sizeof
(
family
->
family_codepage
));
}
...
...
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