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
e0229ba3
Commit
e0229ba3
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 ImmConfigureIMEA.
parent
8f12fac6
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 @
e0229ba3
...
...
@@ -760,36 +760,30 @@ BOOL WINAPI ImmAssociateContextEx(HWND hwnd, HIMC imc, DWORD flags)
/***********************************************************************
* ImmConfigureIMEA (IMM32.@)
*/
BOOL
WINAPI
ImmConfigureIMEA
(
HKL
hKL
,
HWND
hWnd
,
DWORD
dwMode
,
LPVOID
lpData
)
BOOL
WINAPI
ImmConfigureIMEA
(
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
;
REGISTERWORDA
*
rwa
=
lpData
;
BOOL
rc
;
rww
.
lpReading
=
strdupAtoW
(
rwa
->
lpReading
);
rww
.
lpWord
=
strdupAtoW
(
rwa
->
lpWord
);
rc
=
immHkl
->
pImeConfigure
(
hKL
,
hWnd
,
dwMode
,
&
rww
);
HeapFree
(
GetProcessHeap
(),
0
,
rww
.
lpReading
);
HeapFree
(
GetProcessHeap
(),
0
,
rww
.
lpWord
);
return
rc
;
}
REGISTERWORDA
*
wordA
=
data
;
REGISTERWORDW
wordW
;
wordW
.
lpWord
=
strdupAtoW
(
wordA
->
lpWord
);
wordW
.
lpReading
=
strdupAtoW
(
wordA
->
lpReading
);
ret
=
ime
->
pImeConfigure
(
hkl
,
hwnd
,
mode
,
&
wordW
);
HeapFree
(
GetProcessHeap
(),
0
,
wordW
.
lpReading
);
HeapFree
(
GetProcessHeap
(),
0
,
wordW
.
lpWord
);
}
else
return
FALSE
;
return
ret
;
}
/***********************************************************************
...
...
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