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
3475dcdb
Commit
3475dcdb
authored
Mar 17, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added implementation of DllCanUnloadNow.
parent
f089de1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
atl.spec
dlls/atl/atl.spec
+1
-1
registrar.c
dlls/atl/registrar.c
+23
-1
No files found.
dlls/atl/atl.spec
View file @
3475dcdb
1 st
ub
DllCanUnloadNow
1 st
dcall -private DllCanUnloadNow() ATL_
DllCanUnloadNow
2 stdcall -private DllGetClassObject(ptr ptr ptr) ATL_DllGetClassObject
3 stdcall -private DllRegisterServer() ATL_DllRegisterServer
4 stdcall -private DllUnregisterServer() ATL_DllUnregisterServer
...
...
dlls/atl/registrar.c
View file @
3475dcdb
...
...
@@ -37,6 +37,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
atl
);
ULONG
dll_count
=
0
;
/**************************************************************
* ATLRegistrar implementation
*/
...
...
@@ -478,6 +480,7 @@ static ULONG WINAPI Registrar_Release(IRegistrar *iface)
if
(
!
ref
)
{
IRegistrar_ClearReplacements
(
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
InterlockedDecrement
(
&
dll_count
);
}
return
ref
;
}
...
...
@@ -618,6 +621,8 @@ static HRESULT Registrar_create(LPUNKNOWN pUnkOuter, REFIID riid, void **ppvObje
ret
->
rep
=
NULL
;
*
ppvObject
=
ret
;
InterlockedIncrement
(
&
dll_count
);
return
S_OK
;
}
...
...
@@ -639,11 +644,13 @@ static HRESULT WINAPI RegistrarCF_QueryInterface(IClassFactory *iface, REFIID ri
static
ULONG
WINAPI
RegistrarCF_AddRef
(
IClassFactory
*
iface
)
{
InterlockedIncrement
(
&
dll_count
);
return
2
;
}
static
ULONG
WINAPI
RegistrarCF_Release
(
IClassFactory
*
iface
)
{
InterlockedDecrement
(
&
dll_count
);
return
1
;
}
...
...
@@ -656,7 +663,13 @@ static HRESULT WINAPI RegistrarCF_CreateInstance(IClassFactory *iface, LPUNKNOWN
static
HRESULT
WINAPI
RegistrarCF_LockServer
(
IClassFactory
*
iface
,
BOOL
lock
)
{
FIXME
(
"(%p)->(%x)
\n
"
,
iface
,
lock
);
TRACE
(
"(%p)->(%x)
\n
"
,
iface
,
lock
);
if
(
lock
)
InterlockedIncrement
(
&
dll_count
);
else
InterlockedDecrement
(
&
dll_count
);
return
S_OK
;
}
...
...
@@ -732,3 +745,12 @@ HRESULT WINAPI ATL_DllUnregisterServer(void)
TRACE
(
"
\n
"
);
return
do_register_server
(
FALSE
);
}
/***********************************************************************
* DllCanUnloadNow (ATL.@)
*/
HRESULT
WINAPI
ATL_DllCanUnloadNow
(
void
)
{
TRACE
(
"dll_count = %lu
\n
"
,
dll_count
);
return
dll_count
?
S_FALSE
:
S_OK
;
}
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