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
30d5120a
Commit
30d5120a
authored
May 18, 2005
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DllCanUnloadNow fix.
Fixed ObjRefCount for EnumPins.
parent
b96eb4d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
enumpins.c
dlls/qcap/enumpins.c
+3
-3
qcap_main.c
dlls/qcap/qcap_main.c
+1
-1
No files found.
dlls/qcap/enumpins.c
View file @
30d5120a
...
@@ -58,6 +58,7 @@ HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** pp
...
@@ -58,6 +58,7 @@ HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** pp
pEnumPins
->
uIndex
=
0
;
pEnumPins
->
uIndex
=
0
;
CopyMemory
(
&
pEnumPins
->
enumPinDetails
,
pDetails
,
sizeof
(
ENUMPINDETAILS
));
CopyMemory
(
&
pEnumPins
->
enumPinDetails
,
pDetails
,
sizeof
(
ENUMPINDETAILS
));
*
ppEnum
=
(
IEnumPins
*
)(
&
pEnumPins
->
lpVtbl
);
*
ppEnum
=
(
IEnumPins
*
)(
&
pEnumPins
->
lpVtbl
);
ObjectRefCount
(
TRUE
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -103,10 +104,9 @@ static ULONG WINAPI IEnumPinsImpl_Release(IEnumPins * iface)
...
@@ -103,10 +104,9 @@ static ULONG WINAPI IEnumPinsImpl_Release(IEnumPins * iface)
if
(
!
refCount
)
if
(
!
refCount
)
{
{
CoTaskMemFree
(
This
);
CoTaskMemFree
(
This
);
return
0
;
ObjectRefCount
(
FALSE
)
;
}
}
else
return
refCount
;
return
refCount
;
}
}
static
HRESULT
WINAPI
IEnumPinsImpl_Next
(
IEnumPins
*
iface
,
ULONG
cPins
,
IPin
**
ppPins
,
ULONG
*
pcFetched
)
static
HRESULT
WINAPI
IEnumPinsImpl_Next
(
IEnumPins
*
iface
,
ULONG
cPins
,
IPin
**
ppPins
,
ULONG
*
pcFetched
)
...
...
dlls/qcap/qcap_main.c
View file @
30d5120a
...
@@ -195,7 +195,7 @@ HRESULT WINAPI QCAP_DllCanUnloadNow(void)
...
@@ -195,7 +195,7 @@ HRESULT WINAPI QCAP_DllCanUnloadNow(void)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
if
(
objects_ref
==
0
||
server_locks
==
0
)
if
(
objects_ref
==
0
&&
server_locks
==
0
)
return
S_OK
;
return
S_OK
;
return
S_FALSE
;
return
S_FALSE
;
}
}
...
...
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