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
233fb7b3
Commit
233fb7b3
authored
Sep 30, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Move CodePageToCodePages() to IMLangFontLink2 and forward to it.
parent
483b8f76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
mlang.c
dlls/mlang/mlang.c
+23
-24
No files found.
dlls/mlang/mlang.c
View file @
233fb7b3
...
@@ -1895,27 +1895,11 @@ static HRESULT WINAPI fnIMLangFontLink_GetStrCodePages(
...
@@ -1895,27 +1895,11 @@ static HRESULT WINAPI fnIMLangFontLink_GetStrCodePages(
static
HRESULT
WINAPI
fnIMLangFontLink_CodePageToCodePages
(
static
HRESULT
WINAPI
fnIMLangFontLink_CodePageToCodePages
(
IMLangFontLink
*
iface
,
IMLangFontLink
*
iface
,
UINT
uCodeP
age
,
UINT
codep
age
,
DWORD
*
pdwCodeP
ages
)
DWORD
*
codep
ages
)
{
{
MLang_impl
*
This
=
impl_from_IMLangFontLink
(
iface
);
MLang_impl
*
This
=
impl_from_IMLangFontLink
(
iface
);
CHARSETINFO
cs
;
return
IMLangFontLink2_CodePageToCodePages
(
&
This
->
IMLangFontLink2_iface
,
codepage
,
codepages
);
BOOL
rc
;
TRACE
(
"(%p) Seeking %u
\n
"
,
This
,
uCodePage
);
rc
=
TranslateCharsetInfo
((
DWORD
*
)(
DWORD_PTR
)
uCodePage
,
&
cs
,
TCI_SRCCODEPAGE
);
if
(
rc
)
{
*
pdwCodePages
=
cs
.
fs
.
fsCsb
[
0
];
TRACE
(
"resulting CodePages 0x%x
\n
"
,
*
pdwCodePages
);
return
S_OK
;
}
TRACE
(
"CodePage Not Found
\n
"
);
*
pdwCodePages
=
0
;
return
E_FAIL
;
}
}
static
HRESULT
WINAPI
fnIMLangFontLink_CodePagesToCodePage
(
static
HRESULT
WINAPI
fnIMLangFontLink_CodePagesToCodePage
(
...
@@ -3211,12 +3195,27 @@ static HRESULT WINAPI fnIMLangFontLink2_GetStrCodePages( IMLangFontLink2* This,
...
@@ -3211,12 +3195,27 @@ static HRESULT WINAPI fnIMLangFontLink2_GetStrCodePages( IMLangFontLink2* This,
pszSrc
,
cchSrc
,
dwPriorityCodePages
,
pdwCodePages
,
pcchCodePages
);
pszSrc
,
cchSrc
,
dwPriorityCodePages
,
pdwCodePages
,
pcchCodePages
);
}
}
static
HRESULT
WINAPI
fnIMLangFontLink2_CodePageToCodePages
(
IMLangFontLink2
*
This
,
static
HRESULT
WINAPI
fnIMLangFontLink2_CodePageToCodePages
(
IMLangFontLink2
*
iface
,
UINT
uCodeP
age
,
UINT
codep
age
,
DWORD
*
pdwCodeP
ages
)
DWORD
*
codep
ages
)
{
{
FIXME
(
"(%p)->%i %p
\n
"
,
This
,
uCodePage
,
pdwCodePages
);
MLang_impl
*
This
=
impl_from_IMLangFontLink2
(
iface
);
return
E_NOTIMPL
;
CHARSETINFO
cs
;
BOOL
rc
;
TRACE
(
"(%p)->(%u %p)
\n
"
,
This
,
codepage
,
codepages
);
rc
=
TranslateCharsetInfo
((
DWORD
*
)(
DWORD_PTR
)
codepage
,
&
cs
,
TCI_SRCCODEPAGE
);
if
(
rc
)
{
*
codepages
=
cs
.
fs
.
fsCsb
[
0
];
TRACE
(
"resulting codepages 0x%x
\n
"
,
*
codepages
);
return
S_OK
;
}
TRACE
(
"codepage not found
\n
"
);
*
codepages
=
0
;
return
E_FAIL
;
}
}
static
HRESULT
WINAPI
fnIMLangFontLink2_CodePagesToCodePage
(
IMLangFontLink2
*
iface
,
static
HRESULT
WINAPI
fnIMLangFontLink2_CodePagesToCodePage
(
IMLangFontLink2
*
iface
,
...
...
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