Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c88aea3b
Commit
c88aea3b
authored
Mar 09, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Don't crash on missing class implementations.
parent
5bd7e306
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
autocomplete.c
dlls/shell32/tests/autocomplete.c
+16
-2
No files found.
dlls/shell32/tests/autocomplete.c
View file @
c88aea3b
...
@@ -33,7 +33,7 @@ static HWND hMainWnd, hEdit;
...
@@ -33,7 +33,7 @@ static HWND hMainWnd, hEdit;
static
HINSTANCE
hinst
;
static
HINSTANCE
hinst
;
static
int
killfocus_count
;
static
int
killfocus_count
;
static
void
test_init
(
void
)
{
static
BOOL
test_init
(
void
)
{
HRESULT
r
;
HRESULT
r
;
IAutoComplete
*
ac
;
IAutoComplete
*
ac
;
IUnknown
*
acSource
;
IUnknown
*
acSource
;
...
@@ -41,16 +41,28 @@ static void test_init(void) {
...
@@ -41,16 +41,28 @@ static void test_init(void) {
/* AutoComplete instance */
/* AutoComplete instance */
r
=
CoCreateInstance
(
&
CLSID_AutoComplete
,
NULL
,
CLSCTX_INPROC_SERVER
,
r
=
CoCreateInstance
(
&
CLSID_AutoComplete
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IAutoComplete
,
(
LPVOID
*
)
&
ac
);
&
IID_IAutoComplete
,
(
LPVOID
*
)
&
ac
);
if
(
r
==
REGDB_E_CLASSNOTREG
)
{
win_skip
(
"CLSID_AutoComplete is not registered
\n
"
);
return
FALSE
;
}
ok
(
SUCCEEDED
(
r
),
"no IID_IAutoComplete (0x%08x)
\n
"
,
r
);
ok
(
SUCCEEDED
(
r
),
"no IID_IAutoComplete (0x%08x)
\n
"
,
r
);
/* AutoComplete source */
/* AutoComplete source */
r
=
CoCreateInstance
(
&
CLSID_ACLMulti
,
NULL
,
CLSCTX_INPROC_SERVER
,
r
=
CoCreateInstance
(
&
CLSID_ACLMulti
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IACList
,
(
LPVOID
*
)
&
acSource
);
&
IID_IACList
,
(
LPVOID
*
)
&
acSource
);
if
(
r
==
REGDB_E_CLASSNOTREG
)
{
win_skip
(
"CLSID_ACLMulti is not registered
\n
"
);
return
FALSE
;
}
ok
(
SUCCEEDED
(
r
),
"no IID_IACList (0x%08x)
\n
"
,
r
);
ok
(
SUCCEEDED
(
r
),
"no IID_IACList (0x%08x)
\n
"
,
r
);
/* bind to edit control */
/* bind to edit control */
r
=
IAutoComplete_Init
(
ac
,
hEdit
,
acSource
,
NULL
,
NULL
);
r
=
IAutoComplete_Init
(
ac
,
hEdit
,
acSource
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
r
),
"Init failed (0x%08x)
\n
"
,
r
);
ok
(
SUCCEEDED
(
r
),
"Init failed (0x%08x)
\n
"
,
r
);
return
TRUE
;
}
}
static
void
test_killfocus
(
void
)
{
static
void
test_killfocus
(
void
)
{
/* Test if WM_KILLFOCUS messages are handled properly by checking if
/* Test if WM_KILLFOCUS messages are handled properly by checking if
...
@@ -106,7 +118,8 @@ START_TEST(autocomplete) {
...
@@ -106,7 +118,8 @@ START_TEST(autocomplete) {
if
(
!
ok
(
hMainWnd
!=
NULL
,
"Failed to create parent window. Tests aborted.
\n
"
))
if
(
!
ok
(
hMainWnd
!=
NULL
,
"Failed to create parent window. Tests aborted.
\n
"
))
return
;
return
;
test_init
();
if
(
!
test_init
())
goto
cleanup
;
test_killfocus
();
test_killfocus
();
PostQuitMessage
(
0
);
PostQuitMessage
(
0
);
...
@@ -115,6 +128,7 @@ START_TEST(autocomplete) {
...
@@ -115,6 +128,7 @@ START_TEST(autocomplete) {
DispatchMessageA
(
&
msg
);
DispatchMessageA
(
&
msg
);
}
}
cleanup
:
DestroyWindow
(
hEdit
);
DestroyWindow
(
hEdit
);
DestroyWindow
(
hMainWnd
);
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