Alexandre Julliard : shell32: Don' t use the instance of the owner window for the autocomplete listbox.
Alexandre Julliard
julliard at winehq.org
Mon Dec 28 09:16:09 CST 2009
Module: wine
Branch: master
Commit: 1346740a57ac1d2df2291b3c16f9809f43400d4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1346740a57ac1d2df2291b3c16f9809f43400d4f
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Dec 23 17:59:33 2009 +0100
shell32: Don't use the instance of the owner window for the autocomplete listbox.
---
dlls/shell32/autocomplete.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index 949a439..f50c2b7 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);
More information about the wine-cvs
mailing list