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
ad4af126
Commit
ad4af126
authored
Mar 03, 2006
by
Christian Gmeiner
Committed by
Alexandre Julliard
Mar 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Implement DllCanUnloadNow.
parent
b55746ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
mlang.c
dlls/mlang/mlang.c
+24
-4
No files found.
dlls/mlang/mlang.c
View file @
ad4af126
...
...
@@ -453,6 +453,21 @@ static const struct mlang_data
static
void
fill_cp_info
(
const
struct
mlang_data
*
ml_data
,
UINT
index
,
MIMECPINFO
*
mime_cp_info
);
static
LONG
dll_count
;
/*
* Dll lifetime tracking declaration
*/
static
void
LockModule
(
void
)
{
InterlockedIncrement
(
&
dll_count
);
}
static
void
UnlockModule
(
void
)
{
InterlockedDecrement
(
&
dll_count
);
}
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
)
{
switch
(
fdwReason
)
{
...
...
@@ -735,8 +750,11 @@ static HRESULT WINAPI MLANGCF_CreateInstance(LPCLASSFACTORY iface, LPUNKNOWN pOu
static
HRESULT
WINAPI
MLANGCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
dolock
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
FIXME
(
"(%p)->(%d),stub!
\n
"
,
This
,
dolock
);
if
(
dolock
)
LockModule
();
else
UnlockModule
();
return
S_OK
;
}
...
...
@@ -2281,6 +2299,9 @@ static HRESULT MultiLanguage_create(IUnknown *pUnkOuter, LPVOID *ppObj)
mlang
->
ref
=
1
;
*
ppObj
=
(
LPVOID
)
mlang
;
TRACE
(
"returning %p
\n
"
,
mlang
);
LockModule
();
return
S_OK
;
}
...
...
@@ -2288,8 +2309,7 @@ static HRESULT MultiLanguage_create(IUnknown *pUnkOuter, LPVOID *ppObj)
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
FIXME
(
"
\n
"
);
return
S_FALSE
;
return
dll_count
==
0
?
S_OK
:
S_FALSE
;
}
HRESULT
WINAPI
GetGlobalFontLinkObject
(
void
)
...
...
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