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
1fd94250
Commit
1fd94250
authored
Jan 24, 2005
by
James Hawkins
Committed by
Alexandre Julliard
Jan 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly implement DllCanUnloadNow ref counting.
parent
eae60bed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
41 additions
and
0 deletions
+41
-0
auditiontrack.c
dlls/dmstyle/auditiontrack.c
+5
-0
chordtrack.c
dlls/dmstyle/chordtrack.c
+5
-0
commandtrack.c
dlls/dmstyle/commandtrack.c
+5
-0
dmstyle_main.c
dlls/dmstyle/dmstyle_main.c
+0
-0
dmstyle_private.h
dlls/dmstyle/dmstyle_private.h
+6
-0
motiftrack.c
dlls/dmstyle/motiftrack.c
+5
-0
mutetrack.c
dlls/dmstyle/mutetrack.c
+5
-0
style.c
dlls/dmstyle/style.c
+5
-0
styletrack.c
dlls/dmstyle/styletrack.c
+5
-0
No files found.
dlls/dmstyle/auditiontrack.c
View file @
1fd94250
...
...
@@ -55,6 +55,8 @@ ULONG WINAPI IDirectMusicAuditionTrack_IUnknown_AddRef (LPUNKNOWN iface) {
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
DMSTYLE_LockModule
();
return
ref
;
}
...
...
@@ -67,6 +69,9 @@ ULONG WINAPI IDirectMusicAuditionTrack_IUnknown_Release (LPUNKNOWN iface) {
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMSTYLE_UnlockModule
();
return
ref
;
}
...
...
dlls/dmstyle/chordtrack.c
View file @
1fd94250
...
...
@@ -56,6 +56,8 @@ ULONG WINAPI IDirectMusicChordTrack_IUnknown_AddRef (LPUNKNOWN iface) {
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
DMSTYLE_LockModule
();
return
ref
;
}
...
...
@@ -68,6 +70,9 @@ ULONG WINAPI IDirectMusicChordTrack_IUnknown_Release (LPUNKNOWN iface) {
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMSTYLE_UnlockModule
();
return
ref
;
}
...
...
dlls/dmstyle/commandtrack.c
View file @
1fd94250
...
...
@@ -55,6 +55,8 @@ ULONG WINAPI IDirectMusicCommandTrack_IUnknown_AddRef (LPUNKNOWN iface) {
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
DMSTYLE_LockModule
();
return
ref
;
}
...
...
@@ -67,6 +69,9 @@ ULONG WINAPI IDirectMusicCommandTrack_IUnknown_Release (LPUNKNOWN iface) {
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMSTYLE_UnlockModule
();
return
ref
;
}
...
...
dlls/dmstyle/dmstyle_main.c
View file @
1fd94250
This diff is collapsed.
Click to expand it.
dlls/dmstyle/dmstyle_private.h
View file @
1fd94250
...
...
@@ -539,6 +539,12 @@ extern HRESULT WINAPI IDirectMusicStyleTrack_IPersistStream_Load (LPPERSISTSTREA
extern
HRESULT
WINAPI
IDirectMusicStyleTrack_IPersistStream_Save
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
);
extern
HRESULT
WINAPI
IDirectMusicStyleTrack_IPersistStream_GetSizeMax
(
LPPERSISTSTREAM
iface
,
ULARGE_INTEGER
*
pcbSize
);
/**********************************************************************
* Dll lifetime tracking declaration for dmstyle.dll
*/
extern
LONG
DMSTYLE_refCount
;
static
inline
void
DMSTYLE_LockModule
()
{
InterlockedIncrement
(
&
DMSTYLE_refCount
);
}
static
inline
void
DMSTYLE_UnlockModule
()
{
InterlockedDecrement
(
&
DMSTYLE_refCount
);
}
/*****************************************************************************
* Misc.
...
...
dlls/dmstyle/motiftrack.c
View file @
1fd94250
...
...
@@ -55,6 +55,8 @@ ULONG WINAPI IDirectMusicMotifTrack_IUnknown_AddRef (LPUNKNOWN iface) {
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
DMSTYLE_LockModule
();
return
ref
;
}
...
...
@@ -67,6 +69,9 @@ ULONG WINAPI IDirectMusicMotifTrack_IUnknown_Release (LPUNKNOWN iface) {
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMSTYLE_UnlockModule
();
return
ref
;
}
...
...
dlls/dmstyle/mutetrack.c
View file @
1fd94250
...
...
@@ -55,6 +55,8 @@ ULONG WINAPI IDirectMusicMuteTrack_IUnknown_AddRef (LPUNKNOWN iface) {
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
DMSTYLE_LockModule
();
return
ref
;
}
...
...
@@ -67,6 +69,9 @@ ULONG WINAPI IDirectMusicMuteTrack_IUnknown_Release (LPUNKNOWN iface) {
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMSTYLE_UnlockModule
();
return
ref
;
}
...
...
dlls/dmstyle/style.c
View file @
1fd94250
...
...
@@ -63,6 +63,8 @@ ULONG WINAPI IDirectMusicStyle8Impl_IUnknown_AddRef (LPUNKNOWN iface) {
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
DMSTYLE_LockModule
();
return
ref
;
}
...
...
@@ -75,6 +77,9 @@ ULONG WINAPI IDirectMusicStyle8Impl_IUnknown_Release (LPUNKNOWN iface) {
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMSTYLE_UnlockModule
();
return
ref
;
}
...
...
dlls/dmstyle/styletrack.c
View file @
1fd94250
...
...
@@ -55,6 +55,8 @@ ULONG WINAPI IDirectMusicStyleTrack_IUnknown_AddRef (LPUNKNOWN iface) {
TRACE
(
"(%p): AddRef from %ld
\n
"
,
This
,
ref
-
1
);
DMSTYLE_LockModule
();
return
ref
;
}
...
...
@@ -67,6 +69,9 @@ ULONG WINAPI IDirectMusicStyleTrack_IUnknown_Release (LPUNKNOWN iface) {
if
(
ref
==
0
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
DMSTYLE_UnlockModule
();
return
ref
;
}
...
...
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