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
0b34236d
Commit
0b34236d
authored
Feb 21, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Move IMM_FreeThreadData helper around.
parent
245465ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
33 deletions
+30
-33
imm.c
dlls/imm32/imm.c
+30
-33
No files found.
dlls/imm32/imm.c
View file @
0b34236d
...
...
@@ -421,39 +421,6 @@ static InputContextData *query_imc_data(HIMC handle)
return
ret
&&
ret
->
handle
==
handle
?
ret
:
NULL
;
}
static
BOOL
free_input_context_data
(
HIMC
hIMC
)
{
InputContextData
*
data
=
query_imc_data
(
hIMC
);
if
(
!
data
)
return
FALSE
;
TRACE
(
"Destroying %p
\n
"
,
hIMC
);
data
->
immKbd
->
uSelected
--
;
data
->
immKbd
->
pImeSelect
(
hIMC
,
FALSE
);
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SELECT
,
FALSE
,
(
LPARAM
)
data
->
immKbd
);
ImmDestroyIMCC
(
data
->
IMC
.
hCompStr
);
ImmDestroyIMCC
(
data
->
IMC
.
hCandInfo
);
ImmDestroyIMCC
(
data
->
IMC
.
hGuideLine
);
ImmDestroyIMCC
(
data
->
IMC
.
hPrivate
);
ImmDestroyIMCC
(
data
->
IMC
.
hMsgBuf
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
TRUE
;
}
static
void
IMM_FreeThreadData
(
void
)
{
struct
coinit_spy
*
spy
;
free_input_context_data
(
UlongToHandle
(
NtUserGetThreadInfo
()
->
default_imc
));
if
((
spy
=
get_thread_coinit_spy
()))
IInitializeSpy_Release
(
&
spy
->
IInitializeSpy_iface
);
}
static
HMODULE
load_graphics_driver
(
void
)
{
static
const
WCHAR
key_pathW
[]
=
L"System
\\
CurrentControlSet
\\
Control
\\
Video
\\
{"
;
...
...
@@ -556,6 +523,36 @@ failed:
return
NULL
;
}
static
BOOL
free_input_context_data
(
HIMC
hIMC
)
{
InputContextData
*
data
=
query_imc_data
(
hIMC
);
if
(
!
data
)
return
FALSE
;
TRACE
(
"Destroying %p
\n
"
,
hIMC
);
data
->
immKbd
->
uSelected
--
;
data
->
immKbd
->
pImeSelect
(
hIMC
,
FALSE
);
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SELECT
,
FALSE
,
(
LPARAM
)
data
->
immKbd
);
ImmDestroyIMCC
(
data
->
IMC
.
hCompStr
);
ImmDestroyIMCC
(
data
->
IMC
.
hCandInfo
);
ImmDestroyIMCC
(
data
->
IMC
.
hGuideLine
);
ImmDestroyIMCC
(
data
->
IMC
.
hPrivate
);
ImmDestroyIMCC
(
data
->
IMC
.
hMsgBuf
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
TRUE
;
}
static
void
IMM_FreeThreadData
(
void
)
{
struct
coinit_spy
*
spy
;
free_input_context_data
(
UlongToHandle
(
NtUserGetThreadInfo
()
->
default_imc
)
);
if
((
spy
=
get_thread_coinit_spy
()))
IInitializeSpy_Release
(
&
spy
->
IInitializeSpy_iface
);
}
static
void
IMM_FreeAllImmHkl
(
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