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
f50f05da
Commit
f50f05da
authored
Jan 30, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Limit runs in ScriptStringAnalyse to 255.
parent
4df49291
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
usp10.c
dlls/usp10/usp10.c
+4
-11
No files found.
dlls/usp10/usp10.c
View file @
f50f05da
...
@@ -1772,19 +1772,12 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
...
@@ -1772,19 +1772,12 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString,
hr
=
ScriptItemize
(
pString
,
cString
,
num_items
,
&
sControl
,
&
sState
,
analysis
->
pItem
,
hr
=
ScriptItemize
(
pString
,
cString
,
num_items
,
&
sControl
,
&
sState
,
analysis
->
pItem
,
&
analysis
->
numItems
);
&
analysis
->
numItems
);
while
(
hr
==
E_OUTOFMEMORY
)
if
FAILED
(
hr
)
{
{
SCRIPT_ITEM
*
tmp
;
if
(
hr
==
E_OUTOFMEMORY
)
hr
=
E_INVALIDARG
;
num_items
*=
2
;
goto
error
;
if
(
!
(
tmp
=
heap_realloc_zero
(
analysis
->
pItem
,
num_items
*
sizeof
(
SCRIPT_ITEM
)
+
1
)))
goto
error
;
analysis
->
pItem
=
tmp
;
hr
=
ScriptItemize
(
pString
,
cString
,
num_items
,
psControl
,
psState
,
analysis
->
pItem
,
&
analysis
->
numItems
);
}
}
if
(
hr
!=
S_OK
)
goto
error
;
/* set back to out of memory for default goto error behaviour */
/* set back to out of memory for default goto error behaviour */
hr
=
E_OUTOFMEMORY
;
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