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
95ca4446
Commit
95ca4446
authored
Oct 06, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Handle the SSA_PASSWORD flag in ScriptStringAnalyse.
parent
905a819d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
usp10.c
dlls/usp10/usp10.c
+11
-0
No files found.
dlls/usp10/usp10.c
View file @
95ca4446
...
...
@@ -914,6 +914,7 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
SCRIPT_STATE
sState
;
int
i
,
num_items
=
255
;
BYTE
*
BidiLevel
;
WCHAR
*
iString
=
NULL
;
TRACE
(
"(%p,%p,%d,%d,%d,0x%x,%d,%p,%p,%p,%p,%p,%p)
\n
"
,
hdc
,
pString
,
cString
,
cGlyphs
,
iCharset
,
dwFlags
,
iReqWidth
,
...
...
@@ -945,6 +946,14 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
else
memset
(
&
sControl
,
0
,
sizeof
(
SCRIPT_CONTROL
));
if
(
dwFlags
&
SSA_PASSWORD
)
{
iString
=
heap_alloc
(
sizeof
(
WCHAR
)
*
cString
);
for
(
i
=
0
;
i
<
cString
;
i
++
)
iString
[
i
]
=
*
((
const
WCHAR
*
)
pString
);
pString
=
iString
;
}
hr
=
ScriptItemize
(
pString
,
cString
,
num_items
,
&
sControl
,
&
sState
,
analysis
->
pItem
,
&
analysis
->
numItems
);
...
...
@@ -1026,9 +1035,11 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
heap_free
(
BidiLevel
);
*
pssa
=
analysis
;
heap_free
(
iString
);
return
S_OK
;
error:
heap_free
(
iString
);
heap_free
(
analysis
->
glyphs
);
heap_free
(
analysis
->
logattrs
);
heap_free
(
analysis
->
pItem
);
...
...
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