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
ea992bfd
Commit
ea992bfd
authored
Jun 11, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d86b0295
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
Makefile.in
dlls/mlang/Makefile.in
+2
-0
mlang.c
dlls/mlang/mlang.c
+7
-9
No files found.
dlls/mlang/Makefile.in
View file @
ea992bfd
...
...
@@ -3,6 +3,8 @@ IMPORTLIB = mlang
IMPORTS
=
uuid ole32 gdi32 advapi32
DELAYIMPORTS
=
oleaut32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
mlang.c
...
...
dlls/mlang/mlang.c
View file @
ea992bfd
...
...
@@ -21,7 +21,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
...
...
@@ -38,7 +37,6 @@
#include "mlang.h"
#include "mimeole.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/list.h"
...
...
@@ -1283,12 +1281,12 @@ static HRESULT lcid_from_rfc1766(IEnumRfc1766 *iface, LCID *lcid, LPCWSTR rfc176
while
(
IEnumRfc1766_Next
(
iface
,
1
,
&
info
,
&
num
)
==
S_OK
)
{
if
(
!
strcmpiW
(
info
.
wszRfc1766
,
rfc1766
))
if
(
!
wcsicmp
(
info
.
wszRfc1766
,
rfc1766
))
{
*
lcid
=
info
.
lcid
;
return
S_OK
;
}
if
(
strlenW
(
rfc1766
)
==
2
&&
!
memcmp
(
info
.
wszRfc1766
,
rfc1766
,
2
*
sizeof
(
WCHAR
)))
if
(
l
strlenW
(
rfc1766
)
==
2
&&
!
memcmp
(
info
.
wszRfc1766
,
rfc1766
,
2
*
sizeof
(
WCHAR
)))
{
*
lcid
=
PRIMARYLANGID
(
info
.
lcid
);
return
S_OK
;
...
...
@@ -2426,7 +2424,7 @@ static BOOL CALLBACK enum_locales_proc(LPWSTR locale)
info
=
&
data
->
info
[
data
->
total
];
info
->
lcid
=
strtolW
(
locale
,
&
end
,
16
);
info
->
lcid
=
wcstol
(
locale
,
&
end
,
16
);
if
(
*
end
)
/* invalid number */
return
FALSE
;
...
...
@@ -2764,14 +2762,14 @@ static HRESULT WINAPI fnIMultiLanguage3_GetCharsetInfo(
{
pCharsetInfo
->
uiCodePage
=
mlang_data
[
i
].
family_codepage
;
pCharsetInfo
->
uiInternetEncoding
=
mlang_data
[
i
].
mime_cp_info
[
n
].
cp
;
strcpyW
(
pCharsetInfo
->
wszCharset
,
csetW
);
l
strcpyW
(
pCharsetInfo
->
wszCharset
,
csetW
);
return
S_OK
;
}
if
(
mlang_data
[
i
].
mime_cp_info
[
n
].
alias
&&
!
lstrcmpiW
(
Charset
,
mlang_data
[
i
].
mime_cp_info
[
n
].
alias
))
{
pCharsetInfo
->
uiCodePage
=
mlang_data
[
i
].
family_codepage
;
pCharsetInfo
->
uiInternetEncoding
=
mlang_data
[
i
].
mime_cp_info
[
n
].
cp
;
strcpyW
(
pCharsetInfo
->
wszCharset
,
mlang_data
[
i
].
mime_cp_info
[
n
].
alias
);
l
strcpyW
(
pCharsetInfo
->
wszCharset
,
mlang_data
[
i
].
mime_cp_info
[
n
].
alias
);
return
S_OK
;
}
}
...
...
@@ -2793,7 +2791,7 @@ static HRESULT WINAPI fnIMultiLanguage3_GetCharsetInfo(
{
pCharsetInfo
->
uiCodePage
=
mlang_data
[
i
].
family_codepage
;
pCharsetInfo
->
uiInternetEncoding
=
mlang_data
[
i
].
mime_cp_info
[
n
].
cp
;
strcpyW
(
pCharsetInfo
->
wszCharset
,
csetW
);
l
strcpyW
(
pCharsetInfo
->
wszCharset
,
csetW
);
return
S_OK
;
}
}
...
...
@@ -3951,7 +3949,7 @@ static BOOL register_codepages(void)
{
for
(
info
=
family
->
mime_cp_info
;
info
<
family
->
mime_cp_info
+
family
->
number_of_cp
;
info
++
)
{
s
printfW
(
buf
,
formatW
,
info
->
cp
);
s
wprintf
(
buf
,
ARRAY_SIZE
(
buf
)
,
formatW
,
info
->
cp
);
status
=
RegCreateKeyW
(
db_key
,
buf
,
&
key
);
if
(
status
!=
ERROR_SUCCESS
)
continue
;
...
...
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