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
3b5160c9
Commit
3b5160c9
authored
Aug 22, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Always return S_FALSE from DllCanUnloadNow.
parent
23b89884
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
33 deletions
+0
-33
dmsynth_main.c
dlls/dmsynth/dmsynth_main.c
+0
-22
dmsynth_private.h
dlls/dmsynth/dmsynth_private.h
+0
-7
synth.c
dlls/dmsynth/synth.c
+0
-2
synthsink.c
dlls/dmsynth/synthsink.c
+0
-2
No files found.
dlls/dmsynth/dmsynth_main.c
View file @
3b5160c9
...
...
@@ -25,8 +25,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmsynth
);
LONG
DMSYNTH_refCount
=
0
;
typedef
struct
{
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
fnCreateInstance
)(
REFIID
riid
,
void
**
ppv
);
...
...
@@ -62,15 +60,11 @@ static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID r
static
ULONG
WINAPI
ClassFactory_AddRef
(
IClassFactory
*
iface
)
{
DMSYNTH_LockModule
();
return
2
;
/* non-heap based object */
}
static
ULONG
WINAPI
ClassFactory_Release
(
IClassFactory
*
iface
)
{
DMSYNTH_UnlockModule
();
return
1
;
/* non-heap based object */
}
...
...
@@ -90,12 +84,6 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
static
HRESULT
WINAPI
ClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
dolock
)
{
TRACE
(
"(%d)
\n
"
,
dolock
);
if
(
dolock
)
DMSYNTH_LockModule
();
else
DMSYNTH_UnlockModule
();
return
S_OK
;
}
...
...
@@ -111,16 +99,6 @@ static IClassFactoryImpl Synth_CF = {{&classfactory_vtbl}, DMUSIC_CreateDirectMu
static
IClassFactoryImpl
SynthSink_CF
=
{{
&
classfactory_vtbl
},
DMUSIC_CreateDirectMusicSynthSinkImpl
};
/******************************************************************
* DllCanUnloadNow (DMSYNTH.@)
*
*
*/
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
return
DMSYNTH_refCount
!=
0
?
S_FALSE
:
S_OK
;
}
/******************************************************************
* DllGetClassObject (DMSYNTH.@)
...
...
dlls/dmsynth/dmsynth_private.h
View file @
3b5160c9
...
...
@@ -80,13 +80,6 @@ struct IDirectMusicSynthSinkImpl {
BOOL
active
;
};
/**********************************************************************
* Dll lifetime tracking declaration for dmsynth.dll
*/
extern
LONG
DMSYNTH_refCount
;
static
inline
void
DMSYNTH_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMSYNTH_refCount
);
}
static
inline
void
DMSYNTH_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMSYNTH_refCount
);
}
/*****************************************************************************
* Misc.
*/
...
...
dlls/dmsynth/synth.c
View file @
3b5160c9
...
...
@@ -83,7 +83,6 @@ static ULONG WINAPI IDirectMusicSynth8Impl_Release(IDirectMusicSynth8 *iface)
if
(
This
->
latency_clock
)
IReferenceClock_Release
(
This
->
latency_clock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMSYNTH_UnlockModule
();
}
return
ref
;
...
...
@@ -750,7 +749,6 @@ HRESULT DMUSIC_CreateDirectMusicSynthImpl(REFIID riid, void **ppobj)
obj
->
caps
.
dwEffectFlags
=
DMUS_EFFECT_REVERB
;
lstrcpyW
(
obj
->
caps
.
wszDescription
,
L"Microsoft Synthesizer"
);
DMSYNTH_LockModule
();
hr
=
IDirectMusicSynth8_QueryInterface
(
&
obj
->
IDirectMusicSynth8_iface
,
riid
,
ppobj
);
IDirectMusicSynth8_Release
(
&
obj
->
IDirectMusicSynth8_iface
);
...
...
dlls/dmsynth/synthsink.c
View file @
3b5160c9
...
...
@@ -81,7 +81,6 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_Release(IDirectMusicSynthSink *ifa
if
(
This
->
master_clock
)
IReferenceClock_Release
(
This
->
master_clock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMSYNTH_UnlockModule
();
}
return
ref
;
...
...
@@ -317,7 +316,6 @@ HRESULT DMUSIC_CreateDirectMusicSynthSinkImpl(REFIID riid, void **ret_iface)
return
hr
;
}
DMSYNTH_LockModule
();
hr
=
IDirectMusicSynthSink_QueryInterface
(
&
obj
->
IDirectMusicSynthSink_iface
,
riid
,
ret_iface
);
IDirectMusicSynthSink_Release
(
&
obj
->
IDirectMusicSynthSink_iface
);
...
...
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