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
29e51aa3
Commit
29e51aa3
authored
Mar 11, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Remove unnecessary threadDefault InputContextData member.
parent
a7c2f4e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
imm.c
dlls/imm32/imm.c
+2
-13
No files found.
dlls/imm32/imm.c
View file @
29e51aa3
...
...
@@ -94,7 +94,6 @@ typedef struct tagInputContextData
struct
ime
*
ime
;
UINT
lastVK
;
BOOL
threadDefault
;
}
InputContextData
;
#define WINE_IMC_VALID_MAGIC 0x56434D49
...
...
@@ -404,16 +403,6 @@ static void imm_coinit_thread(void)
InitOnceExecuteOnce
(
&
init_ole32_once
,
init_ole32_funcs
,
NULL
,
NULL
);
}
static
BOOL
IMM_IsDefaultContext
(
HIMC
imc
)
{
InputContextData
*
data
=
get_imc_data
(
imc
);
if
(
!
data
)
return
FALSE
;
return
data
->
threadDefault
;
}
static
InputContextData
*
query_imc_data
(
HIMC
handle
)
{
InputContextData
*
ret
;
...
...
@@ -868,7 +857,6 @@ static InputContextData *create_input_context(HIMC default_imc)
new_context
=
calloc
(
1
,
sizeof
(
InputContextData
)
);
/* Load the IME */
new_context
->
threadDefault
=
!!
default_imc
;
if
(
!
(
new_context
->
ime
=
ime_acquire
(
GetKeyboardLayout
(
0
)
)))
{
TRACE
(
"IME dll could not be loaded
\n
"
);
...
...
@@ -953,7 +941,8 @@ static BOOL IMM_DestroyContext(HIMC hIMC)
*/
BOOL
WINAPI
ImmDestroyContext
(
HIMC
hIMC
)
{
if
(
!
IMM_IsDefaultContext
(
hIMC
)
&&
!
IMM_IsCrossThreadAccess
(
NULL
,
hIMC
))
if
((
UINT_PTR
)
hIMC
==
NtUserGetThreadInfo
()
->
default_imc
)
return
FALSE
;
if
(
!
IMM_IsCrossThreadAccess
(
NULL
,
hIMC
))
return
IMM_DestroyContext
(
hIMC
);
else
return
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