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
a7c31071
Commit
a7c31071
authored
May 07, 2004
by
Krishna Murthy
Committed by
Alexandre Julliard
May 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EM_UNDO should always return TRUE for single line edit.
parent
f950d973
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
edit.c
controls/edit.c
+7
-3
No files found.
controls/edit.c
View file @
a7c31071
...
...
@@ -3534,11 +3534,15 @@ static BOOL EDIT_EM_Undo(EDITSTATE *es)
INT
ulength
;
LPWSTR
utext
;
/* Protect read-only edit control from modification */
if
(
es
->
style
&
ES_READONLY
)
return
FALSE
;
/* As per MSDN spec, for a single-line edit control,
the return value is always TRUE */
if
(
es
->
style
&
ES_READONLY
)
return
!
(
es
->
style
&
ES_MULTILINE
);
ulength
=
strlenW
(
es
->
undo_text
);
if
(
ulength
==
0
)
return
!
(
es
->
style
&
ES_MULTILINE
);
utext
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
ulength
+
1
)
*
sizeof
(
WCHAR
));
strcpyW
(
utext
,
es
->
undo_text
);
...
...
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