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
7a6c0d2f
Commit
7a6c0d2f
authored
Jan 21, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jan 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix initial reference count for a new IAutoComplete instance.
parent
57e4e608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
autocomplete.c
dlls/shell32/autocomplete.c
+9
-15
No files found.
dlls/shell32/autocomplete.c
View file @
7a6c0d2f
...
...
@@ -121,33 +121,27 @@ static void create_listbox(IAutoCompleteImpl *This)
HRESULT
WINAPI
IAutoComplete_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
IAutoCompleteImpl
*
lpac
;
HRESULT
hr
;
if
(
pUnkOuter
&&
!
IsEqualIID
(
riid
,
&
IID_IUnknown
))
return
CLASS_E_NOAGGREGATION
;
return
CLASS_E_NOAGGREGATION
;
lpac
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAutoCompleteImpl
));
if
(
!
lpac
)
return
E_OUTOFMEMORY
;
if
(
!
lpac
)
return
E_OUTOFMEMORY
;
lpac
->
ref
=
1
;
lpac
->
lpVtbl
=
&
acvt
;
lpac
->
lpDropDownVtbl
=
&
acdropdownvt
;
lpac
->
enabled
=
TRUE
;
lpac
->
enumstr
=
NULL
;
lpac
->
options
=
ACO_AUTOAPPEND
;
lpac
->
wpOrigEditProc
=
NULL
;
lpac
->
hwndListBox
=
NULL
;
lpac
->
txtbackup
=
NULL
;
lpac
->
quickComplete
=
NULL
;
if
(
FAILED
(
IUnknown_QueryInterface
(
_IUnknown_
(
lpac
),
riid
,
ppv
)))
{
IUnknown_Release
(
_IUnknown_
(
lpac
));
return
E_NOINTERFACE
;
}
hr
=
IUnknown_QueryInterface
(
_IUnknown_
(
lpac
),
riid
,
ppv
);
IUnknown_Release
(
_IUnknown_
(
lpac
));
TRACE
(
"-- (%p)->
\n
"
,
lpac
);
return
S_OK
;
return
hr
;
}
/**************************************************************************
...
...
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