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
4693428b
Commit
4693428b
authored
Feb 21, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Reorder control flow in ImmGetRegisterWordStyleA.
parent
03f17806
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
imm.c
dlls/imm32/imm.c
+17
-20
No files found.
dlls/imm32/imm.c
View file @
4693428b
...
...
@@ -1884,29 +1884,26 @@ DWORD WINAPI ImmGetProperty( HKL hkl, DWORD index )
/***********************************************************************
* ImmGetRegisterWordStyleA (IMM32.@)
*/
UINT
WINAPI
ImmGetRegisterWordStyleA
(
HKL
hKL
,
UINT
nItem
,
LPSTYLEBUFA
lpStyleBuf
)
UINT
WINAPI
ImmGetRegisterWordStyleA
(
HKL
hkl
,
UINT
count
,
STYLEBUFA
*
styleA
)
{
struct
ime
*
immHkl
=
IMM_GetImmHkl
(
hKL
);
TRACE
(
"(%p, %d, %p):
\n
"
,
hKL
,
nItem
,
lpStyleBuf
);
if
(
immHkl
->
hIME
&&
immHkl
->
pImeGetRegisterWordStyle
)
{
if
(
!
is_kbd_ime_unicode
(
immHkl
))
return
immHkl
->
pImeGetRegisterWordStyle
(
nItem
,(
LPSTYLEBUFW
)
lpStyleBuf
);
else
{
STYLEBUFW
sbw
;
UINT
rc
;
struct
ime
*
ime
=
IMM_GetImmHkl
(
hkl
);
UINT
ret
;
rc
=
immHkl
->
pImeGetRegisterWordStyle
(
nItem
,
&
sbw
);
WideCharToMultiByte
(
CP_ACP
,
0
,
sbw
.
szDescription
,
-
1
,
lpStyleBuf
->
szDescription
,
32
,
NULL
,
NULL
);
lpStyleBuf
->
dwStyle
=
sbw
.
dwStyle
;
return
rc
;
}
}
TRACE
(
"hkl %p, count %u, styleA %p.
\n
"
,
hkl
,
count
,
styleA
);
if
(
!
ime
->
hIME
||
!
ime
->
pImeGetRegisterWordStyle
)
return
0
;
if
(
!
is_kbd_ime_unicode
(
ime
))
ret
=
ime
->
pImeGetRegisterWordStyle
(
count
,
(
STYLEBUFW
*
)
styleA
);
else
return
0
;
{
STYLEBUFW
styleW
;
ret
=
ime
->
pImeGetRegisterWordStyle
(
count
,
&
styleW
);
WideCharToMultiByte
(
CP_ACP
,
0
,
styleW
.
szDescription
,
-
1
,
styleA
->
szDescription
,
32
,
NULL
,
NULL
);
styleA
->
dwStyle
=
styleW
.
dwStyle
;
}
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