Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4ad14746
Commit
4ad14746
authored
Nov 15, 2023
by
Santino Mazza
Committed by
Alexandre Julliard
Nov 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Fix GetStrCodePages for characters with different codepages.
parent
b413d497
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
mlang.c
dlls/mlang/mlang.c
+6
-1
mlang.c
dlls/mlang/tests/mlang.c
+2
-2
No files found.
dlls/mlang/mlang.c
View file @
4ad14746
...
...
@@ -3340,7 +3340,12 @@ static HRESULT WINAPI fnIMLangFontLink2_GetStrCodePages( IMLangFontLink2* iface,
if
(
ret
!=
S_OK
)
return
E_FAIL
;
if
(
!
cps
)
cps
=
cp
;
else
cps
&=
cp
;
else
if
((
cps
&
cp
)
!=
0
)
cps
&=
cp
;
else
{
i
--
;
break
;
}
/* FIXME: not tested */
if
(
priority_cp
&
cps
)
break
;
...
...
dlls/mlang/tests/mlang.c
View file @
4ad14746
...
...
@@ -1280,8 +1280,8 @@ static void IMLangFontLink_Test(IMLangFontLink* iMLFL)
processed
=
0
;
ret
=
IMLangFontLink_GetStrCodePages
(
iMLFL
,
str
,
4
,
0
,
&
dwCodePages
,
&
processed
);
ok
(
ret
==
S_OK
,
"IMLangFontLink_GetStrCodePages error %lx
\n
"
,
ret
);
todo_wine
ok
(
dwCodePages
==
dwCmpCodePages
,
"expected %lx, got %lx
\n
"
,
dwCmpCodePages
,
dwCodePages
);
todo_wine
ok
(
processed
==
3
,
"expected 3, got %ld
\n
"
,
processed
);
ok
(
dwCodePages
==
dwCmpCodePages
,
"expected %lx, got %lx
\n
"
,
dwCmpCodePages
,
dwCodePages
);
ok
(
processed
==
3
,
"expected 3, got %ld
\n
"
,
processed
);
dwCodePages
=
0xffff
;
processed
=
-
1
;
...
...
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