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
ca625836
Commit
ca625836
authored
Oct 21, 2007
by
Alex Busenius
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix segfault when combobox contains a longer text than buffer_limit.
parent
604867c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
edit.c
dlls/user32/edit.c
+5
-1
No files found.
dlls/user32/edit.c
View file @
ca625836
...
...
@@ -3203,7 +3203,11 @@ static void EDIT_EM_ReplaceSel(EDITSTATE *es, BOOL can_undo, LPCWSTR lpsz_replac
* such that buffer limit is honored. */
if
((
honor_limit
)
&&
(
size
>
es
->
buffer_limit
))
{
EDIT_NOTIFY_PARENT
(
es
,
EN_MAXTEXT
);
strl
=
es
->
buffer_limit
-
(
tl
-
(
e
-
s
));
/* Buffer limit can be smaller than the actual length of text in combobox */
if
(
es
->
buffer_limit
<
(
tl
-
(
e
-
s
)))
strl
=
0
;
else
strl
=
es
->
buffer_limit
-
(
tl
-
(
e
-
s
));
}
if
(
!
EDIT_MakeFit
(
es
,
tl
-
(
e
-
s
)
+
strl
))
...
...
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