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
03f17806
Commit
03f17806
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 ImmGetProperty.
parent
b3ae4f79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
imm.c
dlls/imm32/imm.c
+18
-18
No files found.
dlls/imm32/imm.c
View file @
03f17806
...
...
@@ -1856,29 +1856,29 @@ BOOL WINAPI ImmGetOpenStatus(HIMC hIMC)
/***********************************************************************
* ImmGetProperty (IMM32.@)
*/
DWORD
WINAPI
ImmGetProperty
(
HKL
hKL
,
DWORD
fdwIndex
)
DWORD
WINAPI
ImmGetProperty
(
HKL
hkl
,
DWORD
index
)
{
DWORD
rc
=
0
;
struct
ime
*
kbd
;
struct
ime
*
ime
;
DWORD
ret
;
TRACE
(
"hkl %p, index %lu.
\n
"
,
hkl
,
index
);
TRACE
(
"(%p, %ld)
\n
"
,
hKL
,
fdwIndex
);
kbd
=
IMM_GetImmHkl
(
hKL
)
;
ime
=
IMM_GetImmHkl
(
hkl
);
if
(
!
ime
||
!
ime
->
hIME
)
return
0
;
if
(
kbd
&&
kbd
->
hIME
)
switch
(
index
)
{
switch
(
fdwIndex
)
{
case
IGP_PROPERTY
:
rc
=
kbd
->
imeInfo
.
fdwProperty
;
break
;
case
IGP_CONVERSION
:
rc
=
kbd
->
imeInfo
.
fdwConversionCaps
;
break
;
case
IGP_SENTENCE
:
rc
=
kbd
->
imeInfo
.
fdwSentenceCaps
;
break
;
case
IGP_SETCOMPSTR
:
rc
=
kbd
->
imeInfo
.
fdwSCSCaps
;
break
;
case
IGP_SELECT
:
rc
=
kbd
->
imeInfo
.
fdwSelectCaps
;
break
;
case
IGP_GETIMEVERSION
:
rc
=
IMEVER_0400
;
break
;
case
IGP_UI
:
rc
=
0
;
break
;
default:
rc
=
0
;
}
case
IGP_PROPERTY
:
ret
=
ime
->
imeInfo
.
fdwProperty
;
break
;
case
IGP_CONVERSION
:
ret
=
ime
->
imeInfo
.
fdwConversionCaps
;
break
;
case
IGP_SENTENCE
:
ret
=
ime
->
imeInfo
.
fdwSentenceCaps
;
break
;
case
IGP_SETCOMPSTR
:
ret
=
ime
->
imeInfo
.
fdwSCSCaps
;
break
;
case
IGP_SELECT
:
ret
=
ime
->
imeInfo
.
fdwSelectCaps
;
break
;
case
IGP_GETIMEVERSION
:
ret
=
IMEVER_0400
;
break
;
case
IGP_UI
:
ret
=
0
;
break
;
default:
ret
=
0
;
break
;
}
return
rc
;
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