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
442364c1
Commit
442364c1
authored
Mar 27, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix interface leaks in SHIsSameObject.
parent
55b4e4e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
ordinal.c
dlls/shlwapi/ordinal.c
+13
-7
No files found.
dlls/shlwapi/ordinal.c
View file @
442364c1
...
...
@@ -1264,9 +1264,10 @@ LPCSTR WINAPI PathSkipLeadingSlashesA(LPCSTR lpszSrc)
*/
BOOL
WINAPI
SHIsSameObject
(
IUnknown
*
lpInt1
,
IUnknown
*
lpInt2
)
{
LPVOID
lpUnknown1
,
lpUnknown2
;
IUnknown
*
lpUnknown1
,
*
lpUnknown2
;
BOOL
ret
;
TRACE
(
"
%p %p
\n
"
,
lpInt1
,
lpInt2
);
TRACE
(
"
(%p %p)
\n
"
,
lpInt1
,
lpInt2
);
if
(
!
lpInt1
||
!
lpInt2
)
return
FALSE
;
...
...
@@ -1274,16 +1275,21 @@ BOOL WINAPI SHIsSameObject(IUnknown* lpInt1, IUnknown* lpInt2)
if
(
lpInt1
==
lpInt2
)
return
TRUE
;
if
(
FAILED
(
IUnknown_QueryInterface
(
lpInt1
,
&
IID_IUnknown
,
&
lpUnknown1
))
)
if
(
IUnknown_QueryInterface
(
lpInt1
,
&
IID_IUnknown
,
(
void
**
)
&
lpUnknown1
)
!=
S_OK
)
return
FALSE
;
if
(
FAILED
(
IUnknown_QueryInterface
(
lpInt2
,
&
IID_IUnknown
,
&
lpUnknown2
)))
if
(
IUnknown_QueryInterface
(
lpInt2
,
&
IID_IUnknown
,
(
void
**
)
&
lpUnknown2
)
!=
S_OK
)
{
IUnknown_Release
(
lpUnknown1
);
return
FALSE
;
}
if
(
lpUnknown1
==
lpUnknown2
)
return
TRUE
;
ret
=
lpUnknown1
==
lpUnknown2
;
return
FALSE
;
IUnknown_Release
(
lpUnknown1
);
IUnknown_Release
(
lpUnknown2
);
return
ret
;
}
/*************************************************************************
...
...
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