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
0ad36379
Commit
0ad36379
authored
Sep 04, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit 13.1.3 upon wine-1.7.4
parent
0327f405
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
19 deletions
+15
-19
imm.c
dlls/imm32/imm.c
+15
-19
No files found.
dlls/imm32/imm.c
View file @
0ad36379
...
...
@@ -769,25 +769,22 @@ HIMC WINAPI ImmCreateContext(void)
static
BOOL
IMM_DestroyContext
(
HIMC
hIMC
)
{
InputContextData
*
data
=
get_imc_data
(
hIMC
);
IMMThreadData
*
tdata
;
TRACE
(
"Destroying %p
\n
"
,
hIMC
);
if
(
data
)
{
IMMThreadData
*
tdata
;
data
->
immKbd
->
uSelected
--
;
data
->
immKbd
->
pImeSelect
(
hIMC
,
FALSE
);
if
(
data
->
IMC
.
hWnd
)
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SELECT
,
FALSE
,
(
LPARAM
)
GetKeyboardLayout
(
0
));
tdata
=
IMM_IsDefaultContext
(
hIMC
);
if
(
tdata
)
tdata
->
hwndDefault
=
NULL
;
LeaveCriticalSection
(
&
threaddata_cs
);
if
(
!
data
)
return
FALSE
;
data
->
immKbd
->
uSelected
--
;
data
->
immKbd
->
pImeSelect
(
hIMC
,
FALSE
);
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SELECT
,
FALSE
,
(
LPARAM
)
GetKeyboardLayout
(
0
));
if
(
data
->
IMC
.
hWnd
)
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SELECT
,
FALSE
,
(
LPARAM
)
GetKeyboardLayout
(
0
));
tdata
=
IMM_IsDefaultContext
(
hIMC
);
if
(
tdata
)
tdata
->
hwndDefault
=
NULL
;
LeaveCriticalSection
(
&
threaddata_cs
);
ImmDestroyIMCC
(
data
->
IMC
.
hCompStr
);
ImmDestroyIMCC
(
data
->
IMC
.
hCandInfo
);
...
...
@@ -798,12 +795,11 @@ static BOOL IMM_DestroyContext(HIMC hIMC)
data
->
magic
=
0
;
HeapFree
(
GetProcessHeap
(),
0
,
data
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
EnterCriticalSection
(
&
threaddata_cs
);
if
(
tdata
)
tdata
->
defaultContext
=
NULL
;
LeaveCriticalSection
(
&
threaddata_cs
);
}
EnterCriticalSection
(
&
threaddata_cs
);
if
(
tdata
)
tdata
->
defaultContext
=
NULL
;
LeaveCriticalSection
(
&
threaddata_cs
);
return
TRUE
;
}
...
...
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