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
3924e6b7
Commit
3924e6b7
authored
Mar 20, 2007
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Mar 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: autocomplete: Don't use sel uninitialized.
parent
5e405d3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
autocomplete.c
dlls/shell32/autocomplete.c
+5
-3
No files found.
dlls/shell32/autocomplete.c
View file @
3924e6b7
...
...
@@ -624,7 +624,7 @@ static LRESULT APIENTRY ACLBoxSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
{
IAutoCompleteImpl
*
This
=
(
IAutoCompleteImpl
*
)
GetWindowLongPtrW
(
hwnd
,
GWLP_USERDATA
);
WCHAR
*
msg
;
int
sel
=
-
1
,
len
;
int
sel
,
len
;
switch
(
uMsg
)
{
case
WM_MOUSEMOVE
:
...
...
@@ -632,9 +632,11 @@ static LRESULT APIENTRY ACLBoxSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
SendMessageW
(
hwnd
,
LB_SETCURSEL
,
(
WPARAM
)
sel
,
(
LPARAM
)
0
);
break
;
case
WM_LBUTTONDOWN
:
len
=
SendMessageW
(
This
->
hwndListBox
,
LB_GETTEXTLEN
,
sel
,
(
LPARAM
)
NULL
);
sel
=
SendMessageW
(
hwnd
,
LB_GETCURSEL
,
0
,
0
);
if
(
sel
<
0
)
break
;
len
=
SendMessageW
(
This
->
hwndListBox
,
LB_GETTEXTLEN
,
sel
,
0
);
msg
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
sel
=
(
INT
)
SendMessageW
(
hwnd
,
LB_GETCURSEL
,
0
,
0
);
SendMessageW
(
hwnd
,
LB_GETTEXT
,
sel
,
(
LPARAM
)
msg
);
SendMessageW
(
This
->
hwndEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
msg
);
SendMessageW
(
This
->
hwndEdit
,
EM_SETSEL
,
0
,
lstrlenW
(
msg
));
...
...
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