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
c3d87e7c
Commit
c3d87e7c
authored
Sep 07, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only access 16-bit stack if really necessary.
parent
13fc2f88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
edit.c
dlls/user/edit.c
+2
-1
No files found.
dlls/user/edit.c
View file @
c3d87e7c
...
...
@@ -1618,7 +1618,6 @@ static void EDIT_LockBuffer(EDITSTATE *es)
{
STACK16FRAME
*
stack16
=
MapSL
((
SEGPTR
)
NtCurrentTeb
()
->
WOW32Reserved
);
HINSTANCE16
hInstance
=
GetWindowLongPtrW
(
es
->
hwndSelf
,
GWLP_HINSTANCE
);
HANDLE16
oldDS
=
stack16
->
ds
;
if
(
!
es
->
text
)
{
CHAR
*
textA
=
NULL
;
...
...
@@ -1635,6 +1634,7 @@ static void EDIT_LockBuffer(EDITSTATE *es)
}
else
if
(
es
->
hloc16
)
{
HANDLE16
oldDS
=
stack16
->
ds
;
TRACE
(
"Synchronizing with 16-bit ANSI buffer
\n
"
);
stack16
->
ds
=
hInstance
;
textA
=
MapSL
(
LocalLock16
(
es
->
hloc16
));
...
...
@@ -1677,6 +1677,7 @@ static void EDIT_LockBuffer(EDITSTATE *es)
MultiByteToWideChar
(
CP_ACP
,
0
,
textA
,
countA
,
es
->
text
,
es
->
buffer_size
+
1
);
if
(
_16bit
)
{
HANDLE16
oldDS
=
stack16
->
ds
;
stack16
->
ds
=
hInstance
;
LocalUnlock16
(
es
->
hloc16
);
stack16
->
ds
=
oldDS
;
...
...
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