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
0197c2c2
Commit
0197c2c2
authored
Feb 20, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Fix module ref counting.
parent
d7e88ff9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
factory.c
dlls/shdocvw/factory.c
+1
-0
urlhist.c
dlls/shdocvw/urlhist.c
+5
-2
No files found.
dlls/shdocvw/factory.c
View file @
0197c2c2
...
...
@@ -54,6 +54,7 @@ static HRESULT WINAPI WBCF_QueryInterface(LPCLASSFACTORY iface,
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IClassFactory
,
riid
))
{
*
ppobj
=
iface
;
IClassFactory_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/shdocvw/urlhist.c
View file @
0197c2c2
...
...
@@ -37,9 +37,10 @@ static HRESULT WINAPI UrlHistoryStg_QueryInterface(IUrlHistoryStg2 *iface, REFII
*
ppv
=
iface
;
}
if
(
*
ppv
)
if
(
*
ppv
)
{
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
WARN
(
"(%s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
...
...
@@ -47,11 +48,13 @@ static HRESULT WINAPI UrlHistoryStg_QueryInterface(IUrlHistoryStg2 *iface, REFII
static
ULONG
WINAPI
UrlHistoryStg_AddRef
(
IUrlHistoryStg2
*
iface
)
{
SHDOCVW_LockModule
();
return
2
;
}
static
ULONG
WINAPI
UrlHistoryStg_Release
(
IUrlHistoryStg2
*
iface
)
{
SHDOCVW_UnlockModule
();
return
1
;
}
...
...
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