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
96005d17
Commit
96005d17
authored
Aug 24, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Use proper method macros.
parent
1552e22b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
14 deletions
+15
-14
assoc.c
dlls/shell32/tests/assoc.c
+9
-8
shelldispatch.c
dlls/shell32/tests/shelldispatch.c
+1
-1
shelllink.c
dlls/shell32/tests/shelllink.c
+2
-2
shlfolder.c
dlls/shell32/tests/shlfolder.c
+1
-1
shlview.c
dlls/shell32/tests/shlview.c
+2
-2
No files found.
dlls/shell32/tests/assoc.c
View file @
96005d17
...
...
@@ -43,19 +43,19 @@ static void test_IQueryAssociations_QueryInterface(void)
return
;
}
hr
=
I
Unknown
_QueryInterface
(
qa
,
&
IID_IQueryAssociations
,
(
void
**
)
&
qa2
);
hr
=
I
QueryAssociations
_QueryInterface
(
qa
,
&
IID_IQueryAssociations
,
(
void
**
)
&
qa2
);
ok
(
hr
==
S_OK
,
"QueryInterface (IQueryAssociations) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
I
Unknown
_Release
(
qa2
);
I
QueryAssociations
_Release
(
qa2
);
}
hr
=
I
Unknown
_QueryInterface
(
qa
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
hr
=
I
QueryAssociations
_QueryInterface
(
qa
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface (IUnknown) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_Release
(
unk
);
}
hr
=
I
Unknown
_QueryInterface
(
qa
,
&
IID_IUnknown
,
NULL
);
hr
=
I
QueryAssociations
_QueryInterface
(
qa
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%x (expected E_POINTER)
\n
"
,
hr
);
IQueryAssociations_Release
(
qa
);
...
...
@@ -78,19 +78,20 @@ static void test_IApplicationAssociationRegistration_QueryInterface(void)
return
;
}
hr
=
IUnknown_QueryInterface
(
appreg
,
&
IID_IApplicationAssociationRegistration
,
(
void
**
)
&
appreg2
);
hr
=
IApplicationAssociationRegistration_QueryInterface
(
appreg
,
&
IID_IApplicationAssociationRegistration
,
(
void
**
)
&
appreg2
);
ok
(
hr
==
S_OK
,
"QueryInterface (IApplicationAssociationRegistration) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
I
Unknow
n_Release
(
appreg2
);
I
ApplicationAssociationRegistratio
n_Release
(
appreg2
);
}
hr
=
I
Unknow
n_QueryInterface
(
appreg
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
hr
=
I
ApplicationAssociationRegistratio
n_QueryInterface
(
appreg
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface (IUnknown) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_Release
(
unk
);
}
hr
=
I
Unknow
n_QueryInterface
(
appreg
,
&
IID_IUnknown
,
NULL
);
hr
=
I
ApplicationAssociationRegistratio
n_QueryInterface
(
appreg
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%x (expected E_POINTER)
\n
"
,
hr
);
IApplicationAssociationRegistration_Release
(
appreg
);
...
...
dlls/shell32/tests/shelldispatch.c
View file @
96005d17
...
...
@@ -360,7 +360,7 @@ static void test_service(void)
ok
(
V_BOOL
(
&
v
)
==
VARIANT_FALSE
,
"got %d
\n
"
,
V_BOOL
(
&
v
));
SysFreeString
(
name
);
IShellDispatch_Release
(
sd
);
IShellDispatch
2
_Release
(
sd
);
}
START_TEST
(
shelldispatch
)
...
...
dlls/shell32/tests/shelllink.c
View file @
96005d17
...
...
@@ -417,7 +417,7 @@ void create_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int save_fails)
lok
(
r
==
S_OK
,
"SetHotkey failed (0x%08x)
\n
"
,
r
);
}
r
=
IShellLink
W_QueryInterface
(
sl
,
&
IID_IPersistFile
,
(
LPVOID
*
)
&
pf
);
r
=
IShellLink
A_QueryInterface
(
sl
,
&
IID_IPersistFile
,
(
void
*
*
)
&
pf
);
lok
(
r
==
S_OK
,
"no IID_IPersistFile (0x%08x)
\n
"
,
r
);
if
(
r
==
S_OK
)
{
...
...
@@ -902,7 +902,7 @@ if (0)
LocalFree
(
dar
);
I
Unknown
_Release
(
dl
);
I
ShellLinkDataList
_Release
(
dl
);
IShellLinkW_Release
(
sl
);
}
...
...
dlls/shell32/tests/shlfolder.c
View file @
96005d17
...
...
@@ -796,7 +796,7 @@ static void test_GetDisplayName(void)
broken
(
hr
==
S_OK
),
/* Win9x, W2K */
"hr = %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
I
ShellFolder
_Release
(
psfFile
);
I
Unknown
_Release
(
psfFile
);
}
if
(
!
pSHBindToParent
)
...
...
dlls/shell32/tests/shlview.c
View file @
96005d17
...
...
@@ -170,7 +170,7 @@ static HRESULT WINAPI IDataObjectImpl_QueryInterface(IDataObject *iface, REFIID
if
(
*
ppvObj
)
{
I
Unknown
_AddRef
(
iface
);
I
DataObject
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -302,7 +302,7 @@ static HRESULT WINAPI IShellBrowserImpl_QueryInterface(IShellBrowser *iface,
if
(
*
ppvObj
)
{
I
Unknown
_AddRef
(
iface
);
I
ShellBrowser
_AddRef
(
iface
);
return
S_OK
;
}
...
...
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