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
65f25a15
Commit
65f25a15
authored
Aug 22, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dswave: Always return S_FALSE from DllCanUnloadNow.
parent
649de392
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
32 deletions
+0
-32
dswave.c
dlls/dswave/dswave.c
+0
-2
dswave_main.c
dlls/dswave/dswave_main.c
+0
-23
dswave_private.h
dlls/dswave/dswave_private.h
+0
-7
No files found.
dlls/dswave/dswave.c
View file @
65f25a15
...
...
@@ -86,7 +86,6 @@ static ULONG WINAPI IUnknownImpl_Release(IUnknown *iface)
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DSWAVE_UnlockModule
();
}
return
ref
;
...
...
@@ -191,7 +190,6 @@ HRESULT create_dswave(REFIID lpcGUID, void **ppobj)
obj
->
dmobj
.
IDirectMusicObject_iface
.
lpVtbl
=
&
dmobject_vtbl
;
obj
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
DSWAVE_LockModule
();
hr
=
IUnknown_QueryInterface
(
&
obj
->
IUnknown_iface
,
lpcGUID
,
ppobj
);
IUnknown_Release
(
&
obj
->
IUnknown_iface
);
return
hr
;
...
...
dlls/dswave/dswave_main.c
View file @
65f25a15
...
...
@@ -39,8 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dswave
);
LONG
DSWAVE_refCount
=
0
;
typedef
struct
{
IClassFactory
IClassFactory_iface
;
}
IClassFactoryImpl
;
...
...
@@ -70,15 +68,11 @@ static HRESULT WINAPI WaveCF_QueryInterface(IClassFactory * iface, REFIID riid,
static
ULONG
WINAPI
WaveCF_AddRef
(
IClassFactory
*
iface
)
{
DSWAVE_LockModule
();
return
2
;
/* non-heap based object */
}
static
ULONG
WINAPI
WaveCF_Release
(
IClassFactory
*
iface
)
{
DSWAVE_UnlockModule
();
return
1
;
/* non-heap based object */
}
...
...
@@ -98,12 +92,6 @@ static HRESULT WINAPI WaveCF_CreateInstance(IClassFactory * iface, IUnknown *out
static
HRESULT
WINAPI
WaveCF_LockServer
(
IClassFactory
*
iface
,
BOOL
dolock
)
{
TRACE
(
"(%d)
\n
"
,
dolock
);
if
(
dolock
)
DSWAVE_LockModule
();
else
DSWAVE_UnlockModule
();
return
S_OK
;
}
...
...
@@ -118,17 +106,6 @@ static const IClassFactoryVtbl WaveCF_Vtbl = {
static
IClassFactoryImpl
Wave_CF
=
{{
&
WaveCF_Vtbl
}};
/******************************************************************
* DllCanUnloadNow (DSWAVE.@)
*
*
*/
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
return
DSWAVE_refCount
!=
0
?
S_FALSE
:
S_OK
;
}
/******************************************************************
* DllGetClassObject (DSWAVE.@)
*
*
...
...
dlls/dswave/dswave_private.h
View file @
65f25a15
...
...
@@ -44,11 +44,4 @@
*/
extern
HRESULT
create_dswave
(
REFIID
lpcGUID
,
void
**
ret_iface
);
/**********************************************************************
* Dll lifetime tracking declaration for dswave.dll
*/
extern
LONG
DSWAVE_refCount
;
static
inline
void
DSWAVE_LockModule
(
void
)
{
InterlockedIncrement
(
&
DSWAVE_refCount
);
}
static
inline
void
DSWAVE_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DSWAVE_refCount
);
}
#endif
/* __WINE_DSWAVE_PRIVATE_H */
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