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
1ad1474b
Commit
1ad1474b
authored
Aug 23, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Always use a SCRIPT_STATE and SCRIPT_CONTROL structure in ScriptStringAnalyse.
parent
4b6b0fe6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
usp10.c
dlls/usp10/usp10.c
+13
-1
No files found.
dlls/usp10/usp10.c
View file @
1ad1474b
...
...
@@ -907,6 +907,8 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
{
HRESULT
hr
=
E_OUTOFMEMORY
;
StringAnalysis
*
analysis
=
NULL
;
SCRIPT_CONTROL
sControl
;
SCRIPT_STATE
sState
;
int
i
,
num_items
=
255
;
TRACE
(
"(%p,%p,%d,%d,%d,0x%x,%d,%p,%p,%p,%p,%p,%p)
\n
"
,
...
...
@@ -928,7 +930,17 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
analysis
->
clip_len
=
cString
;
analysis
->
hdc
=
hdc
;
hr
=
ScriptItemize
(
pString
,
cString
,
num_items
,
psControl
,
psState
,
analysis
->
pItem
,
if
(
psState
)
sState
=
*
psState
;
else
memset
(
&
sState
,
0
,
sizeof
(
SCRIPT_STATE
));
if
(
psControl
)
sControl
=
*
psControl
;
else
memset
(
&
sControl
,
0
,
sizeof
(
SCRIPT_CONTROL
));
hr
=
ScriptItemize
(
pString
,
cString
,
num_items
,
&
sControl
,
&
sState
,
analysis
->
pItem
,
&
analysis
->
numItems
);
while
(
hr
==
E_OUTOFMEMORY
)
...
...
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