Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
302208f1
Commit
302208f1
authored
23 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Fixed inter-process packing of CB/LB_FINDSTRING, CB/LB_FINDSTRINGEXACT
and CB/LB_SELECTSTRING.
parent
ffd4d33d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/user/message.c
+12
-12
12 additions, 12 deletions
dlls/user/message.c
with
12 additions
and
12 deletions
dlls/user/message.c
+
12
−
12
View file @
302208f1
...
...
@@ -395,14 +395,8 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara
case
WM_WININICHANGE
:
case
WM_DEVMODECHANGE
:
case
CB_DIR
:
case
CB_FINDSTRING
:
case
CB_FINDSTRINGEXACT
:
case
CB_SELECTSTRING
:
case
LB_DIR
:
case
LB_ADDFILE
:
case
LB_FINDSTRING
:
case
LB_FINDSTRINGEXACT
:
case
LB_SELECTSTRING
:
case
EM_REPLACESEL
:
push_string
(
data
,
(
LPWSTR
)
lparam
);
return
0
;
...
...
@@ -494,6 +488,9 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara
return
0
;
case
CB_ADDSTRING
:
case
CB_INSERTSTRING
:
case
CB_FINDSTRING
:
case
CB_FINDSTRINGEXACT
:
case
CB_SELECTSTRING
:
if
(
combobox_has_strings
(
hwnd
))
push_string
(
data
,
(
LPWSTR
)
lparam
);
return
0
;
case
CB_GETLBTEXT
:
...
...
@@ -501,6 +498,9 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara
return
(
SendMessageW
(
hwnd
,
CB_GETLBTEXTLEN
,
wparam
,
0
)
+
1
)
*
sizeof
(
WCHAR
);
case
LB_ADDSTRING
:
case
LB_INSERTSTRING
:
case
LB_FINDSTRING
:
case
LB_FINDSTRINGEXACT
:
case
LB_SELECTSTRING
:
if
(
listbox_has_strings
(
hwnd
))
push_string
(
data
,
(
LPWSTR
)
lparam
);
return
0
;
case
LB_GETTEXT
:
...
...
@@ -606,14 +606,8 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
case
WM_WININICHANGE
:
case
WM_DEVMODECHANGE
:
case
CB_DIR
:
case
CB_FINDSTRING
:
case
CB_FINDSTRINGEXACT
:
case
CB_SELECTSTRING
:
case
LB_DIR
:
case
LB_ADDFILE
:
case
LB_FINDSTRING
:
case
LB_FINDSTRINGEXACT
:
case
LB_SELECTSTRING
:
case
EM_REPLACESEL
:
if
(
!
check_string
(
*
buffer
,
size
))
return
FALSE
;
break
;
...
...
@@ -712,8 +706,14 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
break
;
case
CB_ADDSTRING
:
case
CB_INSERTSTRING
:
case
CB_FINDSTRING
:
case
CB_FINDSTRINGEXACT
:
case
CB_SELECTSTRING
:
case
LB_ADDSTRING
:
case
LB_INSERTSTRING
:
case
LB_FINDSTRING
:
case
LB_FINDSTRINGEXACT
:
case
LB_SELECTSTRING
:
if
(
!*
buffer
)
return
TRUE
;
if
(
!
check_string
(
*
buffer
,
size
))
return
FALSE
;
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment