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
16f4b563
Commit
16f4b563
authored
Dec 29, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix memory leaks in autocomplete tests.
parent
0fd772be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
autocomplete.c
dlls/shell32/tests/autocomplete.c
+11
-5
No files found.
dlls/shell32/tests/autocomplete.c
View file @
16f4b563
...
...
@@ -33,7 +33,7 @@ static HWND hMainWnd, hEdit;
static
HINSTANCE
hinst
;
static
int
killfocus_count
;
static
BOOL
test_init
(
void
)
static
IAutoComplete
*
test_init
(
void
)
{
HRESULT
r
;
IAutoComplete
*
ac
;
...
...
@@ -45,7 +45,7 @@ static BOOL test_init(void)
if
(
r
==
REGDB_E_CLASSNOTREG
)
{
win_skip
(
"CLSID_AutoComplete is not registered
\n
"
);
return
FALSE
;
return
NULL
;
}
ok
(
SUCCEEDED
(
r
),
"no IID_IAutoComplete (0x%08x)
\n
"
,
r
);
...
...
@@ -55,7 +55,7 @@ static BOOL test_init(void)
if
(
r
==
REGDB_E_CLASSNOTREG
)
{
win_skip
(
"CLSID_ACLMulti is not registered
\n
"
);
return
FALSE
;
return
NULL
;
}
ok
(
SUCCEEDED
(
r
),
"no IID_IACList (0x%08x)
\n
"
,
r
);
...
...
@@ -63,7 +63,9 @@ static BOOL test_init(void)
r
=
IAutoComplete_Init
(
ac
,
hEdit
,
acSource
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
r
),
"Init failed (0x%08x)
\n
"
,
r
);
return
TRUE
;
IUnknown_Release
(
acSource
);
return
ac
;
}
static
void
test_killfocus
(
void
)
...
...
@@ -116,6 +118,7 @@ START_TEST(autocomplete)
{
HRESULT
r
;
MSG
msg
;
IAutoComplete
*
ac
;
r
=
CoInitialize
(
NULL
);
ok
(
SUCCEEDED
(
r
),
"CoInitialize failed (0x%08x). Tests aborted.
\n
"
,
r
);
...
...
@@ -127,7 +130,8 @@ START_TEST(autocomplete)
if
(
!
ok
(
hMainWnd
!=
NULL
,
"Failed to create parent window. Tests aborted.
\n
"
))
return
;
if
(
!
test_init
())
ac
=
test_init
();
if
(
!
ac
)
goto
cleanup
;
test_killfocus
();
...
...
@@ -137,6 +141,8 @@ START_TEST(autocomplete)
DispatchMessageA
(
&
msg
);
}
IAutoComplete_Release
(
ac
);
cleanup
:
DestroyWindow
(
hEdit
);
DestroyWindow
(
hMainWnd
);
...
...
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