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
8c08faba
Commit
8c08faba
authored
Nov 27, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Improve IMLangLineBreakConsole::BreakLineA for the ASCII codepage.
parent
c76cc4a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
mlang.c
dlls/mlang/mlang.c
+21
-4
No files found.
dlls/mlang/mlang.c
View file @
8c08faba
...
...
@@ -36,6 +36,7 @@
#include "objbase.h"
#include "rpcproxy.h"
#include "mlang.h"
#include "mimeole.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
@@ -44,8 +45,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mlang);
#include "initguid.h"
#define CP_UNICODE 1200
static
HRESULT
MultiLanguage_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
static
HRESULT
MLangConvertCharset_create
(
IUnknown
*
outer
,
void
**
obj
);
static
HRESULT
EnumRfc1766_create
(
LANGID
LangId
,
IEnumRfc1766
**
ppEnum
);
...
...
@@ -3484,10 +3483,28 @@ static HRESULT WINAPI fnIMLangLineBreakConsole_BreakLineA(
LONG
*
pcchLine
,
LONG
*
pcchSkip
)
{
LONG
i
,
line
=
cchSrc
,
skip
=
0
;
FIXME
(
"(%p)->%i %i %s %i %i %p %p
\n
"
,
iface
,
locale
,
uCodePage
,
debugstr_an
(
pszSrc
,
cchSrc
),
cchSrc
,
cMaxColumns
,
pcchLine
,
pcchSkip
);
*
pcchLine
=
cchSrc
;
*
pcchSkip
=
0
;
if
(
uCodePage
==
CP_USASCII
&&
cchSrc
>
cMaxColumns
)
{
for
(
line
=
cMaxColumns
,
i
=
cMaxColumns
-
1
;
i
>=
0
;
i
--
)
{
if
(
pszSrc
[
i
]
==
' '
)
{
while
(
i
>=
0
&&
pszSrc
[
i
]
==
' '
)
{
i
--
;
line
--
;
skip
++
;
}
break
;
}
}
}
*
pcchLine
=
line
;
*
pcchSkip
=
skip
;
return
S_OK
;
}
...
...
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