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
3311684e
Commit
3311684e
authored
Oct 28, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Return FALSE on WM_MSIME_* messages in ImmIsUIMessage.
parent
24de8560
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
22 deletions
+29
-22
imm.c
dlls/imm32/imm.c
+6
-22
imm32.c
dlls/imm32/tests/imm32.c
+23
-0
No files found.
dlls/imm32/imm.c
View file @
3311684e
...
...
@@ -1945,28 +1945,20 @@ BOOL WINAPI ImmIsIME(HKL hKL)
BOOL
WINAPI
ImmIsUIMessageA
(
HWND
hWndIME
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
BOOL
rc
=
FALSE
;
TRACE
(
"(%p, %x, %ld, %ld)
\n
"
,
hWndIME
,
msg
,
wParam
,
lParam
);
if
((
msg
>=
WM_IME_STARTCOMPOSITION
&&
msg
<=
WM_IME_KEYLAST
)
||
(
msg
==
WM_IME_SETCONTEXT
)
||
(
msg
==
WM_IME_NOTIFY
)
||
(
msg
==
WM_IME_COMPOSITIONFULL
)
||
(
msg
==
WM_IME_SELECT
)
||
(
msg
==
0x287
/* FIXME: WM_IME_SYSTEM */
)
||
(
msg
==
WM_MSIME_RECONVERTOPTIONS
)
||
(
msg
==
WM_MSIME_MOUSE
)
||
(
msg
==
WM_MSIME_RECONVERTREQUEST
)
||
(
msg
==
WM_MSIME_RECONVERT
)
||
(
msg
==
WM_MSIME_QUERYPOSITION
)
||
(
msg
==
WM_MSIME_DOCUMENTFEED
))
(
msg
==
0x287
/* FIXME: WM_IME_SYSTEM */
))
{
if
(
hWndIME
)
SendMessageA
(
hWndIME
,
msg
,
wParam
,
lParam
);
r
c
=
TRUE
;
r
eturn
TRUE
;
}
return
rc
;
return
FALSE
;
}
/***********************************************************************
...
...
@@ -1975,28 +1967,20 @@ BOOL WINAPI ImmIsUIMessageA(
BOOL
WINAPI
ImmIsUIMessageW
(
HWND
hWndIME
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
BOOL
rc
=
FALSE
;
TRACE
(
"(%p, %x, %ld, %ld)
\n
"
,
hWndIME
,
msg
,
wParam
,
lParam
);
if
((
msg
>=
WM_IME_STARTCOMPOSITION
&&
msg
<=
WM_IME_KEYLAST
)
||
(
msg
==
WM_IME_SETCONTEXT
)
||
(
msg
==
WM_IME_NOTIFY
)
||
(
msg
==
WM_IME_COMPOSITIONFULL
)
||
(
msg
==
WM_IME_SELECT
)
||
(
msg
==
0x287
/* FIXME: WM_IME_SYSTEM */
)
||
(
msg
==
WM_MSIME_RECONVERTOPTIONS
)
||
(
msg
==
WM_MSIME_MOUSE
)
||
(
msg
==
WM_MSIME_RECONVERTREQUEST
)
||
(
msg
==
WM_MSIME_RECONVERT
)
||
(
msg
==
WM_MSIME_QUERYPOSITION
)
||
(
msg
==
WM_MSIME_DOCUMENTFEED
))
(
msg
==
0x287
/* FIXME: WM_IME_SYSTEM */
))
{
if
(
hWndIME
)
SendMessageW
(
hWndIME
,
msg
,
wParam
,
lParam
);
r
c
=
TRUE
;
r
eturn
TRUE
;
}
return
rc
;
return
FALSE
;
}
/***********************************************************************
...
...
dlls/imm32/tests/imm32.c
View file @
3311684e
...
...
@@ -607,6 +607,14 @@ static void test_ImmIsUIMessage(void)
{
0
,
FALSE
}
/* mark the end */
};
UINT
WM_MSIME_SERVICE
=
RegisterWindowMessageA
(
"MSIMEService"
);
UINT
WM_MSIME_RECONVERTOPTIONS
=
RegisterWindowMessageA
(
"MSIMEReconvertOptions"
);
UINT
WM_MSIME_MOUSE
=
RegisterWindowMessageA
(
"MSIMEMouseOperation"
);
UINT
WM_MSIME_RECONVERTREQUEST
=
RegisterWindowMessageA
(
"MSIMEReconvertRequest"
);
UINT
WM_MSIME_RECONVERT
=
RegisterWindowMessageA
(
"MSIMEReconvert"
);
UINT
WM_MSIME_QUERYPOSITION
=
RegisterWindowMessageA
(
"MSIMEQueryPosition"
);
UINT
WM_MSIME_DOCUMENTFEED
=
RegisterWindowMessageA
(
"MSIMEDocumentFeed"
);
const
struct
test
*
test
;
BOOL
ret
;
...
...
@@ -626,6 +634,21 @@ static void test_ImmIsUIMessage(void)
else
ok
(
!
msg_spy_find_msg
(
test
->
msg
),
"Windows does not send 0x%x
\n
"
,
test
->
msg
);
}
ret
=
pImmIsUIMessageA
(
NULL
,
WM_MSIME_SERVICE
,
0
,
0
);
ok
(
!
ret
,
"ImmIsUIMessageA returned TRUE for WM_MSIME_SERVICE
\n
"
);
ret
=
pImmIsUIMessageA
(
NULL
,
WM_MSIME_RECONVERTOPTIONS
,
0
,
0
);
ok
(
!
ret
,
"ImmIsUIMessageA returned TRUE for WM_MSIME_RECONVERTOPTIONS
\n
"
);
ret
=
pImmIsUIMessageA
(
NULL
,
WM_MSIME_MOUSE
,
0
,
0
);
ok
(
!
ret
,
"ImmIsUIMessageA returned TRUE for WM_MSIME_MOUSE
\n
"
);
ret
=
pImmIsUIMessageA
(
NULL
,
WM_MSIME_RECONVERTREQUEST
,
0
,
0
);
ok
(
!
ret
,
"ImmIsUIMessageA returned TRUE for WM_MSIME_RECONVERTREQUEST
\n
"
);
ret
=
pImmIsUIMessageA
(
NULL
,
WM_MSIME_RECONVERT
,
0
,
0
);
ok
(
!
ret
,
"ImmIsUIMessageA returned TRUE for WM_MSIME_RECONVERT
\n
"
);
ret
=
pImmIsUIMessageA
(
NULL
,
WM_MSIME_QUERYPOSITION
,
0
,
0
);
ok
(
!
ret
,
"ImmIsUIMessageA returned TRUE for WM_MSIME_QUERYPOSITION
\n
"
);
ret
=
pImmIsUIMessageA
(
NULL
,
WM_MSIME_DOCUMENTFEED
,
0
,
0
);
ok
(
!
ret
,
"ImmIsUIMessageA returned TRUE for WM_MSIME_DOCUMENTFEED
\n
"
);
}
static
void
test_ImmGetContext
(
void
)
...
...
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