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
5ce9649f
Commit
5ce9649f
authored
Apr 09, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Implement ImmUnregisterWord using loaded IME.
parent
25cb21de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
10 deletions
+44
-10
imm.c
dlls/imm32/imm.c
+44
-10
No files found.
dlls/imm32/imm.c
View file @
5ce9649f
...
...
@@ -1805,11 +1805,28 @@ BOOL WINAPI ImmSimulateHotKey(HWND hWnd, DWORD dwHotKeyID)
BOOL
WINAPI
ImmUnregisterWordA
(
HKL
hKL
,
LPCSTR
lpszReading
,
DWORD
dwStyle
,
LPCSTR
lpszUnregister
)
{
FIXME
(
"(%p, %s, %d, %s): stub
\n
"
,
hKL
,
debugstr_a
(
lpszReading
),
dwStyle
,
debugstr_a
(
lpszUnregister
)
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
ImmHkl
*
immHkl
=
IMM_GetImmHkl
(
hKL
);
TRACE
(
"(%p, %s, %d, %s):
\n
"
,
hKL
,
debugstr_a
(
lpszReading
),
dwStyle
,
debugstr_a
(
lpszUnregister
));
if
(
immHkl
->
hIME
&&
immHkl
->
pImeUnregisterWord
)
{
if
(
!
is_kbd_ime_unicode
(
immHkl
))
return
immHkl
->
pImeUnregisterWord
((
LPCWSTR
)
lpszReading
,
dwStyle
,
(
LPCWSTR
)
lpszUnregister
);
else
{
LPWSTR
lpszwReading
=
strdupAtoW
(
lpszReading
);
LPWSTR
lpszwUnregister
=
strdupAtoW
(
lpszUnregister
);
BOOL
rc
;
rc
=
immHkl
->
pImeUnregisterWord
(
lpszwReading
,
dwStyle
,
lpszwUnregister
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszwReading
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszwUnregister
);
return
rc
;
}
}
else
return
FALSE
;
}
/***********************************************************************
...
...
@@ -1818,11 +1835,28 @@ BOOL WINAPI ImmUnregisterWordA(
BOOL
WINAPI
ImmUnregisterWordW
(
HKL
hKL
,
LPCWSTR
lpszReading
,
DWORD
dwStyle
,
LPCWSTR
lpszUnregister
)
{
FIXME
(
"(%p, %s, %d, %s): stub
\n
"
,
hKL
,
debugstr_w
(
lpszReading
),
dwStyle
,
debugstr_w
(
lpszUnregister
)
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
ImmHkl
*
immHkl
=
IMM_GetImmHkl
(
hKL
);
TRACE
(
"(%p, %s, %d, %s):
\n
"
,
hKL
,
debugstr_w
(
lpszReading
),
dwStyle
,
debugstr_w
(
lpszUnregister
));
if
(
immHkl
->
hIME
&&
immHkl
->
pImeUnregisterWord
)
{
if
(
is_kbd_ime_unicode
(
immHkl
))
return
immHkl
->
pImeUnregisterWord
(
lpszReading
,
dwStyle
,
lpszUnregister
);
else
{
LPSTR
lpszaReading
=
strdupWtoA
(
lpszReading
);
LPSTR
lpszaUnregister
=
strdupWtoA
(
lpszUnregister
);
BOOL
rc
;
rc
=
immHkl
->
pImeUnregisterWord
((
LPCWSTR
)
lpszaReading
,
dwStyle
,
(
LPCWSTR
)
lpszaUnregister
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszaReading
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszaUnregister
);
return
rc
;
}
}
else
return
FALSE
;
}
/***********************************************************************
...
...
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