mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
sync to wine head
Andrew Talbot <Andrew.Talbot@talbotville.com> Exclude unused headers. Mikoaj Zalewski <mikolaj@zalewski.pl> autocomplete: Don't use sel uninitialized. svn path=/trunk/; revision=29484
This commit is contained in:
parent
5bbed73d42
commit
a0e410976f
1 changed files with 5 additions and 5 deletions
|
@ -39,7 +39,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define COBJMACROS
|
||||
|
||||
#include "wine/debug.h"
|
||||
|
@ -52,7 +51,6 @@
|
|||
#include "objbase.h"
|
||||
|
||||
#include "pidl.h"
|
||||
#include "shlguid.h"
|
||||
#include "shlobj.h"
|
||||
#include "shldisp.h"
|
||||
#include "debughlp.h"
|
||||
|
@ -625,7 +623,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:
|
||||
|
@ -633,9 +631,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));
|
||||
|
|
Loading…
Reference in a new issue