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
8f1e00a1
Commit
8f1e00a1
authored
Apr 28, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Apr 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Fix ImmAssociateContextEx parameter handling.
parent
73d4d172
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
imm.c
dlls/imm32/imm.c
+12
-12
imm32.c
dlls/imm32/tests/imm32.c
+4
-4
No files found.
dlls/imm32/imm.c
View file @
8f1e00a1
...
...
@@ -516,30 +516,30 @@ static BOOL CALLBACK _ImmAssociateContextExEnumProc(HWND hwnd, LPARAM lParam)
*/
BOOL
WINAPI
ImmAssociateContextEx
(
HWND
hWnd
,
HIMC
hIMC
,
DWORD
dwFlags
)
{
TRACE
(
"(%p, %p,
%d): stub
\n
"
,
hWnd
,
hIMC
,
dwFlags
);
TRACE
(
"(%p, %p,
0x%x):
\n
"
,
hWnd
,
hIMC
,
dwFlags
);
if
(
!
IMM_GetThreadData
()
->
defaultContext
)
IMM_GetThreadData
()
->
defaultContext
=
ImmCreateContext
();
if
(
dwFlags
==
IACE_DEFAULT
)
if
(
!
hWnd
)
return
FALSE
;
switch
(
dwFlags
)
{
case
0
:
ImmAssociateContext
(
hWnd
,
hIMC
);
return
TRUE
;
case
IACE_DEFAULT
:
ImmAssociateContext
(
hWnd
,
IMM_GetThreadData
()
->
defaultContext
);
return
TRUE
;
}
else
if
(
dwFlags
==
IACE_IGNORENOCONTEXT
)
{
case
IACE_IGNORENOCONTEXT
:
if
(
GetPropW
(
hWnd
,
szwWineIMCProperty
))
ImmAssociateContext
(
hWnd
,
hIMC
);
return
TRUE
;
}
else
if
(
dwFlags
==
IACE_CHILDREN
)
{
case
IACE_CHILDREN
:
EnumChildWindows
(
hWnd
,
_ImmAssociateContextExEnumProc
,(
LPARAM
)
hIMC
);
return
TRUE
;
}
else
{
ERR
(
"Unknown dwFlags 0x%x
\n
"
,
dwFlags
);
default:
FIXME
(
"Unknown dwFlags 0x%x
\n
"
,
dwFlags
);
return
FALSE
;
}
}
...
...
dlls/imm32/tests/imm32.c
View file @
8f1e00a1
...
...
@@ -330,20 +330,20 @@ static void test_ImmAssociateContextEx(void)
rc
=
pImmAssociateContextEx
(
NULL
,
NULL
,
0
);
ok
(
!
rc
,
"ImmAssociateContextEx succeeded
\n
"
);
rc
=
pImmAssociateContextEx
(
hwnd
,
NULL
,
0
);
todo_wine
ok
(
rc
,
"ImmAssociateContextEx failed
\n
"
);
ok
(
rc
,
"ImmAssociateContextEx failed
\n
"
);
rc
=
pImmAssociateContextEx
(
NULL
,
imc
,
0
);
ok
(
!
rc
,
"ImmAssociateContextEx succeeded
\n
"
);
rc
=
pImmAssociateContextEx
(
hwnd
,
imc
,
0
);
todo_wine
ok
(
rc
,
"ImmAssociateContextEx failed
\n
"
);
ok
(
rc
,
"ImmAssociateContextEx failed
\n
"
);
retimc
=
ImmGetContext
(
hwnd
);
ok
(
retimc
==
imc
,
"handles should be the same
\n
"
);
ImmReleaseContext
(
hwnd
,
retimc
);
rc
=
pImmAssociateContextEx
(
hwnd
,
newimc
,
0
);
todo_wine
ok
(
rc
,
"ImmAssociateContextEx failed
\n
"
);
ok
(
rc
,
"ImmAssociateContextEx failed
\n
"
);
retimc
=
ImmGetContext
(
hwnd
);
todo_wine
ok
(
retimc
==
newimc
,
"handles should be the same
\n
"
);
ok
(
retimc
==
newimc
,
"handles should be the same
\n
"
);
ImmReleaseContext
(
hwnd
,
retimc
);
rc
=
pImmAssociateContextEx
(
hwnd
,
NULL
,
IACE_DEFAULT
);
...
...
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