From 1346740a57ac1d2df2291b3c16f9809f43400d4f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 23 Dec 2009 17:59:33 +0100 Subject: [PATCH] shell32: Don't use the instance of the owner window for the autocomplete listbox. --- dlls/shell32/autocomplete.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c index 949a4390895..f50c2b77f42 100644 --- a/dlls/shell32/autocomplete.c +++ b/dlls/shell32/autocomplete.c @@ -56,6 +56,7 @@ #include "shlobj.h" #include "shldisp.h" #include "debughlp.h" +#include "shell32_main.h" #include "wine/unicode.h" @@ -106,8 +107,7 @@ static void create_listbox(IAutoCompleteImpl *This) This->hwndListBox = CreateWindowExW(0, WC_LISTBOXW, NULL, WS_BORDER | WS_CHILD | WS_VSCROLL | LBS_HASSTRINGS | LBS_NOTIFY | LBS_NOINTEGRALHEIGHT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, - hwndParent, NULL, - (HINSTANCE)GetWindowLongPtrW( hwndParent, GWLP_HINSTANCE ), NULL); + hwndParent, NULL, shell32_hInstance, NULL ); if (This->hwndListBox) { This->wpOrigLBoxProc = (WNDPROC) SetWindowLongPtrW( This->hwndListBox, GWLP_WNDPROC, (LONG_PTR) ACLBoxSubclassProc);