Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6e1e7a88
Commit
6e1e7a88
authored
Aug 22, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Always return S_FALSE from DllCanUnloadNow.
parent
4ae866a0
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
0 additions
and
62 deletions
+0
-62
audiopath.c
dlls/dmime/audiopath.c
+0
-2
dmime_main.c
dlls/dmime/dmime_main.c
+0
-22
dmime_private.h
dlls/dmime/dmime_private.h
+0
-7
graph.c
dlls/dmime/graph.c
+0
-2
lyricstrack.c
dlls/dmime/lyricstrack.c
+0
-2
markertrack.c
dlls/dmime/markertrack.c
+0
-2
paramcontroltrack.c
dlls/dmime/paramcontroltrack.c
+0
-2
performance.c
dlls/dmime/performance.c
+0
-4
segment.c
dlls/dmime/segment.c
+0
-3
segmentstate.c
dlls/dmime/segmentstate.c
+0
-4
segtriggertrack.c
dlls/dmime/segtriggertrack.c
+0
-2
seqtrack.c
dlls/dmime/seqtrack.c
+0
-2
sysextrack.c
dlls/dmime/sysextrack.c
+0
-2
tempotrack.c
dlls/dmime/tempotrack.c
+0
-2
timesigtrack.c
dlls/dmime/timesigtrack.c
+0
-2
wavetrack.c
dlls/dmime/wavetrack.c
+0
-2
No files found.
dlls/dmime/audiopath.c
View file @
6e1e7a88
...
...
@@ -96,7 +96,6 @@ static ULONG WINAPI IDirectMusicAudioPathImpl_AddRef (IDirectMusicAudioPath *ifa
TRACE
(
"(%p): ref=%ld
\n
"
,
This
,
ref
);
DMIME_LockModule
();
return
ref
;
}
...
...
@@ -116,7 +115,6 @@ static ULONG WINAPI IDirectMusicAudioPathImpl_Release (IDirectMusicAudioPath *if
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMIME_UnlockModule
();
return
ref
;
}
...
...
dlls/dmime/dmime_main.c
View file @
6e1e7a88
...
...
@@ -38,8 +38,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmime
);
LONG
DMIME_refCount
=
0
;
typedef
struct
{
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
fnCreateInstance
)(
REFIID
riid
,
void
**
ret_iface
);
...
...
@@ -75,15 +73,11 @@ static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID r
static
ULONG
WINAPI
ClassFactory_AddRef
(
IClassFactory
*
iface
)
{
DMIME_LockModule
();
return
2
;
/* non-heap based object */
}
static
ULONG
WINAPI
ClassFactory_Release
(
IClassFactory
*
iface
)
{
DMIME_UnlockModule
();
return
1
;
/* non-heap based object */
}
...
...
@@ -103,12 +97,6 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
static
HRESULT
WINAPI
ClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
dolock
)
{
TRACE
(
"(%d)
\n
"
,
dolock
);
if
(
dolock
)
DMIME_LockModule
();
else
DMIME_UnlockModule
();
return
S_OK
;
}
...
...
@@ -136,16 +124,6 @@ static IClassFactoryImpl SegTriggerTrack_CF = {{&classfactory_vtbl}, create_dmse
static
IClassFactoryImpl
AudioPath_CF
=
{{
&
classfactory_vtbl
},
create_dmaudiopath
};
static
IClassFactoryImpl
WaveTrack_CF
=
{{
&
classfactory_vtbl
},
create_dmwavetrack
};
/******************************************************************
* DllCanUnloadNow (DMIME.1)
*
*
*/
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
return
DMIME_refCount
!=
0
?
S_FALSE
:
S_OK
;
}
/******************************************************************
* DllGetClassObject (DMIME.@)
...
...
dlls/dmime/dmime_private.h
View file @
6e1e7a88
...
...
@@ -96,13 +96,6 @@ typedef struct _DMUS_PRIVATE_TEMPO_PLAY_STATE {
DWORD
dummy
;
}
DMUS_PRIVATE_TEMPO_PLAY_STATE
,
*
LPDMUS_PRIVATE_TEMPO_PLAY_STATE
;
/**********************************************************************
* Dll lifetime tracking declaration for dmime.dll
*/
extern
LONG
DMIME_refCount
;
static
inline
void
DMIME_LockModule
(
void
)
{
InterlockedIncrement
(
&
DMIME_refCount
);
}
static
inline
void
DMIME_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
DMIME_refCount
);
}
/*****************************************************************************
* Misc.
*/
...
...
dlls/dmime/graph.c
View file @
6e1e7a88
...
...
@@ -75,7 +75,6 @@ static ULONG WINAPI DirectMusicGraph_AddRef(IDirectMusicGraph *iface)
TRACE
(
"(%p): %ld
\n
"
,
This
,
ref
);
DMIME_LockModule
();
return
ref
;
}
...
...
@@ -89,7 +88,6 @@ static ULONG WINAPI DirectMusicGraph_Release(IDirectMusicGraph *iface)
if
(
ref
==
0
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
return
ref
;
}
...
...
dlls/dmime/lyricstrack.c
View file @
6e1e7a88
...
...
@@ -84,7 +84,6 @@ static ULONG WINAPI lyrics_track_Release(IDirectMusicTrack8 *iface)
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -359,7 +358,6 @@ HRESULT create_dmlyricstrack(REFIID lpcGUID, void **ppobj)
(
IUnknown
*
)
&
track
->
IDirectMusicTrack8_iface
);
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
DMIME_LockModule
();
hr
=
IDirectMusicTrack8_QueryInterface
(
&
track
->
IDirectMusicTrack8_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack8_Release
(
&
track
->
IDirectMusicTrack8_iface
);
...
...
dlls/dmime/markertrack.c
View file @
6e1e7a88
...
...
@@ -78,7 +78,6 @@ static ULONG WINAPI IDirectMusicTrackImpl_Release(IDirectMusicTrack *iface)
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -237,7 +236,6 @@ HRESULT create_dmmarkertrack(REFIID lpcGUID, void **ppobj)
(
IUnknown
*
)
&
track
->
IDirectMusicTrack_iface
);
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
DMIME_LockModule
();
hr
=
IDirectMusicTrack_QueryInterface
(
&
track
->
IDirectMusicTrack_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack_Release
(
&
track
->
IDirectMusicTrack_iface
);
...
...
dlls/dmime/paramcontroltrack.c
View file @
6e1e7a88
...
...
@@ -79,7 +79,6 @@ static ULONG WINAPI paramcontrol_track_Release(IDirectMusicTrack8 *iface)
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -273,7 +272,6 @@ HRESULT create_dmparamcontroltrack(REFIID lpcGUID, void **ppobj)
(
IUnknown
*
)
&
track
->
IDirectMusicTrack8_iface
);
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
DMIME_LockModule
();
hr
=
IDirectMusicTrack8_QueryInterface
(
&
track
->
IDirectMusicTrack8_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack8_Release
(
&
track
->
IDirectMusicTrack8_iface
);
...
...
dlls/dmime/performance.c
View file @
6e1e7a88
...
...
@@ -278,8 +278,6 @@ static ULONG WINAPI IDirectMusicPerformance8Impl_AddRef(IDirectMusicPerformance8
TRACE
(
"(%p): ref=%ld
\n
"
,
This
,
ref
);
DMIME_LockModule
();
return
ref
;
}
...
...
@@ -297,8 +295,6 @@ static ULONG WINAPI IDirectMusicPerformance8Impl_Release(IDirectMusicPerformance
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMIME_UnlockModule
();
return
ref
;
}
...
...
dlls/dmime/segment.c
View file @
6e1e7a88
...
...
@@ -94,7 +94,6 @@ static ULONG WINAPI IDirectMusicSegment8Impl_Release(IDirectMusicSegment8 *iface
free
(
This
->
wave_data
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -935,8 +934,6 @@ IDirectMusicSegment8Impl *create_segment(void)
obj
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
list_init
(
&
obj
->
Tracks
);
DMIME_LockModule
();
return
obj
;
}
...
...
dlls/dmime/segmentstate.c
View file @
6e1e7a88
...
...
@@ -63,8 +63,6 @@ static ULONG WINAPI DirectMusicSegmentState8_AddRef(IDirectMusicSegmentState8 *i
TRACE
(
"(%p): %ld
\n
"
,
This
,
ref
);
DMIME_LockModule
();
return
ref
;
}
...
...
@@ -78,8 +76,6 @@ static ULONG WINAPI DirectMusicSegmentState8_Release(IDirectMusicSegmentState8 *
if
(
ref
==
0
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
return
ref
;
}
...
...
dlls/dmime/segtriggertrack.c
View file @
6e1e7a88
...
...
@@ -102,7 +102,6 @@ static ULONG WINAPI segment_track_Release(IDirectMusicTrack8 *iface)
}
heap_free
(
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -399,7 +398,6 @@ HRESULT create_dmsegtriggertrack(REFIID lpcGUID, void **ppobj)
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
list_init
(
&
track
->
Items
);
DMIME_LockModule
();
hr
=
IDirectMusicTrack8_QueryInterface
(
&
track
->
IDirectMusicTrack8_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack8_Release
(
&
track
->
IDirectMusicTrack8_iface
);
...
...
dlls/dmime/seqtrack.c
View file @
6e1e7a88
...
...
@@ -79,7 +79,6 @@ static ULONG WINAPI sequence_track_Release(IDirectMusicTrack8 *iface)
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -273,7 +272,6 @@ HRESULT create_dmseqtrack(REFIID lpcGUID, void **ppobj)
(
IUnknown
*
)
&
track
->
IDirectMusicTrack8_iface
);
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
DMIME_LockModule
();
hr
=
IDirectMusicTrack8_QueryInterface
(
&
track
->
IDirectMusicTrack8_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack8_Release
(
&
track
->
IDirectMusicTrack8_iface
);
...
...
dlls/dmime/sysextrack.c
View file @
6e1e7a88
...
...
@@ -79,7 +79,6 @@ static ULONG WINAPI sysex_track_Release(IDirectMusicTrack8 *iface)
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -272,7 +271,6 @@ HRESULT create_dmsysextrack(REFIID lpcGUID, void **ppobj)
(
IUnknown
*
)
&
track
->
IDirectMusicTrack8_iface
);
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
DMIME_LockModule
();
hr
=
IDirectMusicTrack8_QueryInterface
(
&
track
->
IDirectMusicTrack8_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack8_Release
(
&
track
->
IDirectMusicTrack8_iface
);
...
...
dlls/dmime/tempotrack.c
View file @
6e1e7a88
...
...
@@ -87,7 +87,6 @@ static ULONG WINAPI tempo_track_Release(IDirectMusicTrack8 *iface)
if
(
!
ref
)
{
heap_free
(
This
->
items
);
heap_free
(
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -386,7 +385,6 @@ HRESULT create_dmtempotrack(REFIID lpcGUID, void **ppobj)
(
IUnknown
*
)
&
track
->
IDirectMusicTrack8_iface
);
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
DMIME_LockModule
();
hr
=
IDirectMusicTrack8_QueryInterface
(
&
track
->
IDirectMusicTrack8_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack8_Release
(
&
track
->
IDirectMusicTrack8_iface
);
...
...
dlls/dmime/timesigtrack.c
View file @
6e1e7a88
...
...
@@ -88,7 +88,6 @@ static ULONG WINAPI IDirectMusicTrackImpl_Release(IDirectMusicTrack *iface)
if
(
!
ref
)
{
heap_free
(
This
->
items
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -301,7 +300,6 @@ HRESULT create_dmtimesigtrack(REFIID lpcGUID, void **ppobj)
(
IUnknown
*
)
&
track
->
IDirectMusicTrack_iface
);
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
DMIME_LockModule
();
hr
=
IDirectMusicTrack_QueryInterface
(
&
track
->
IDirectMusicTrack_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack_Release
(
&
track
->
IDirectMusicTrack_iface
);
...
...
dlls/dmime/wavetrack.c
View file @
6e1e7a88
...
...
@@ -113,7 +113,6 @@ static ULONG WINAPI wave_track_Release(IDirectMusicTrack8 *iface)
}
heap_free
(
This
);
DMIME_UnlockModule
();
}
return
ref
;
...
...
@@ -488,7 +487,6 @@ HRESULT create_dmwavetrack(REFIID lpcGUID, void **ppobj)
track
->
dmobj
.
IPersistStream_iface
.
lpVtbl
=
&
persiststream_vtbl
;
list_init
(
&
track
->
parts
);
DMIME_LockModule
();
hr
=
IDirectMusicTrack8_QueryInterface
(
&
track
->
IDirectMusicTrack8_iface
,
lpcGUID
,
ppobj
);
IDirectMusicTrack8_Release
(
&
track
->
IDirectMusicTrack8_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