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
46198a5f
Commit
46198a5f
authored
Apr 02, 2015
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Apr 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Always return FALSE in DllCanUnloadNow.
parent
af30ffaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
msctf.c
dlls/msctf/msctf.c
+1
-10
No files found.
dlls/msctf/msctf.c
View file @
46198a5f
...
...
@@ -41,8 +41,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msctf
);
static
LONG
MSCTF_refCount
;
static
HINSTANCE
MSCTF_hinstance
;
typedef
struct
...
...
@@ -110,7 +108,6 @@ static void ClassFactory_Destructor(ClassFactory *This)
{
TRACE
(
"Destroying class factory %p
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
InterlockedDecrement
(
&
MSCTF_refCount
);
}
static
HRESULT
WINAPI
ClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
LPVOID
*
ppvOut
)
...
...
@@ -163,11 +160,6 @@ static HRESULT WINAPI ClassFactory_LockServer(IClassFactory *iface, BOOL fLock)
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
fLock
);
if
(
fLock
)
InterlockedIncrement
(
&
MSCTF_refCount
);
else
InterlockedDecrement
(
&
MSCTF_refCount
);
return
S_OK
;
}
...
...
@@ -190,7 +182,6 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
This
->
ctor
=
ctor
;
*
ppvOut
=
This
;
TRACE
(
"Created class factory %p
\n
"
,
This
);
InterlockedIncrement
(
&
MSCTF_refCount
);
return
S_OK
;
}
...
...
@@ -539,7 +530,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
*/
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
return
MSCTF_refCount
?
S_FALSE
:
S_OK
;
return
S_FALSE
;
}
/***********************************************************************
...
...
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