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
38152f89
Commit
38152f89
authored
Feb 21, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Reorder control flow in ImmConfigureIMEW.
parent
e0229ba3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
24 deletions
+18
-24
imm.c
dlls/imm32/imm.c
+18
-24
No files found.
dlls/imm32/imm.c
View file @
38152f89
...
...
@@ -789,36 +789,30 @@ BOOL WINAPI ImmConfigureIMEA( HKL hkl, HWND hwnd, DWORD mode, void *data )
/***********************************************************************
* ImmConfigureIMEW (IMM32.@)
*/
BOOL
WINAPI
ImmConfigureIMEW
(
HKL
hKL
,
HWND
hWnd
,
DWORD
dwMode
,
LPVOID
lpData
)
BOOL
WINAPI
ImmConfigureIMEW
(
HKL
hkl
,
HWND
hwnd
,
DWORD
mode
,
void
*
data
)
{
struct
ime
*
immHkl
=
IMM_GetImmHkl
(
hKL
);
struct
ime
*
ime
=
IMM_GetImmHkl
(
hkl
);
BOOL
ret
;
TRACE
(
"(%p, %p, %ld, %p):
\n
"
,
hKL
,
hWnd
,
dwMode
,
lpData
);
TRACE
(
"hkl %p, hwnd %p, mode %lu, data %p.
\n
"
,
hkl
,
hwnd
,
mode
,
data
);
if
(
dwMode
==
IME_CONFIG_REGISTERWORD
&&
!
lpData
)
return
FALSE
;
if
(
mode
==
IME_CONFIG_REGISTERWORD
&&
!
data
)
return
FALSE
;
if
(
!
ime
->
hIME
||
!
ime
->
pImeConfigure
)
return
FALSE
;
if
(
immHkl
->
hIME
&&
immHkl
->
pImeConfigure
)
if
(
mode
!=
IME_CONFIG_REGISTERWORD
||
is_kbd_ime_unicode
(
ime
))
ret
=
ime
->
pImeConfigure
(
hkl
,
hwnd
,
mode
,
data
);
else
{
if
(
dwMode
!=
IME_CONFIG_REGISTERWORD
||
is_kbd_ime_unicode
(
immHkl
))
return
immHkl
->
pImeConfigure
(
hKL
,
hWnd
,
dwMode
,
lpData
);
else
{
REGISTERWORDW
*
rww
=
lpData
;
REGISTERWORDA
rwa
;
BOOL
rc
;
rwa
.
lpReading
=
strdupWtoA
(
rww
->
lpReading
);
rwa
.
lpWord
=
strdupWtoA
(
rww
->
lpWord
);
rc
=
immHkl
->
pImeConfigure
(
hKL
,
hWnd
,
dwMode
,
&
rwa
);
HeapFree
(
GetProcessHeap
(),
0
,
rwa
.
lpReading
);
HeapFree
(
GetProcessHeap
(),
0
,
rwa
.
lpWord
);
return
rc
;
}
REGISTERWORDW
*
wordW
=
data
;
REGISTERWORDA
wordA
;
wordA
.
lpWord
=
strdupWtoA
(
wordW
->
lpWord
);
wordA
.
lpReading
=
strdupWtoA
(
wordW
->
lpReading
);
ret
=
ime
->
pImeConfigure
(
hkl
,
hwnd
,
mode
,
&
wordA
);
HeapFree
(
GetProcessHeap
(),
0
,
wordA
.
lpReading
);
HeapFree
(
GetProcessHeap
(),
0
,
wordA
.
lpWord
);
}
else
return
FALSE
;
return
ret
;
}
static
InputContextData
*
create_input_context
(
HIMC
default_imc
)
...
...
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