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
2f529c39
Commit
2f529c39
authored
Jan 05, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Move a comment about HLOCAL16 to user.exe.
parent
e5180c10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
message.c
dlls/user.exe16/message.c
+11
-0
edit.c
dlls/user32/edit.c
+1
-13
No files found.
dlls/user.exe16/message.c
View file @
2f529c39
...
...
@@ -2094,6 +2094,17 @@ static LRESULT combo_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam,
return
wow_handlers32
.
combo_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
FALSE
);
}
/*********************************************************************
* edit_lock_buffer (internal)
*
* A 16 bit application might send an EM_GETHANDLE message and expect a HLOCAL16
* (16 bit SEG:OFF handler). From that moment on we have to keep using this
* 16 bit memory handler, because it is supposed to be valid at all times after
* EM_GETHANDLE.
* We create a HLOCAL16 buffer in edit_get_handle and copy the text from the
* HLOCAL buffer, when needed
*
*/
#define GWW_HANDLE16 sizeof(void*)
...
...
dlls/user32/edit.c
View file @
2f529c39
...
...
@@ -1088,19 +1088,7 @@ static inline void text_buffer_changed(EDITSTATE *es)
}
/*********************************************************************
*
* EDIT_LockBuffer
*
* This acts as a LocalLock16(), but it locks only once. This way
* you can call it whenever you like, without unlocking.
*
* Initially the edit control allocates a HLOCAL32 buffer
* (32 bit linear memory handler). However, 16 bit application
* might send an EM_GETHANDLE message and expect a HLOCAL16 (16 bit SEG:OFF
* handler). From that moment on we have to keep using this 16 bit memory
* handler, because it is supposed to be valid at all times after EM_GETHANDLE.
* What we do is create a HLOCAL16 buffer, copy the text, and do pointer
* conversion.
* EDIT_LockBuffer
*
*/
static
void
EDIT_LockBuffer
(
EDITSTATE
*
es
)
...
...
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