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
1da5c9d1
Commit
1da5c9d1
authored
Apr 26, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: COM cleanup in shlfolder.c.
parent
ac3ed426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
shlfolder.c
dlls/shell32/tests/shlfolder.c
+9
-4
No files found.
dlls/shell32/tests/shlfolder.c
View file @
1da5c9d1
...
...
@@ -2965,7 +2965,7 @@ cleanup:
/**************************************************************/
/* IUnknown implementation for counting QueryInterface calls. */
typedef
struct
{
const
IUnknownVtbl
*
lpVtbl
;
IUnknown
IUnknown_iface
;
struct
if_count
{
REFIID
id
;
LONG
count
;
...
...
@@ -2973,9 +2973,14 @@ typedef struct {
LONG
unknown
;
}
IUnknownImpl
;
static
inline
IUnknownImpl
*
impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IUnknownImpl
,
IUnknown_iface
);
}
static
HRESULT
WINAPI
unk_fnQueryInterface
(
IUnknown
*
iunk
,
REFIID
riid
,
void
**
punk
)
{
IUnknownImpl
*
This
=
(
IUnknownImpl
*
)
iunk
;
IUnknownImpl
*
This
=
impl_from_IUnknown
(
iunk
)
;
UINT
i
,
found
;
for
(
i
=
found
=
0
;
This
->
ifaces
[
i
].
id
!=
NULL
;
i
++
)
{
...
...
@@ -3042,7 +3047,7 @@ static void test_SHGetIDListFromObject(void)
ok
(
hres
==
E_NOINTERFACE
,
"Got %x
\n
"
,
hres
);
punkimpl
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IUnknownImpl
));
punkimpl
->
lpVtbl
=
&
vt_IUnknown
;
punkimpl
->
IUnknown_iface
.
lpVtbl
=
&
vt_IUnknown
;
punkimpl
->
ifaces
=
ifaces
;
punkimpl
->
unknown
=
0
;
...
...
@@ -3213,7 +3218,7 @@ static void test_SHGetItemFromObject(void)
ok
(
hres
==
E_NOINTERFACE
,
"Got 0x%08x
\n
"
,
hres
);
punkimpl
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IUnknownImpl
));
punkimpl
->
lpVtbl
=
&
vt_IUnknown
;
punkimpl
->
IUnknown_iface
.
lpVtbl
=
&
vt_IUnknown
;
punkimpl
->
ifaces
=
ifaces
;
punkimpl
->
unknown
=
0
;
...
...
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