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
3dde049f
Commit
3dde049f
authored
Apr 11, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: All HIMCC in the InputContext should be initialized at creation.
parent
352c98d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
imm.c
dlls/imm32/imm.c
+14
-2
imm.h
include/ddk/imm.h
+18
-0
No files found.
dlls/imm32/imm.c
View file @
3dde049f
...
...
@@ -496,6 +496,8 @@ BOOL WINAPI ImmConfigureIMEW(
HIMC
WINAPI
ImmCreateContext
(
void
)
{
InputContextData
*
new_context
;
LPGUIDELINE
gl
;
LPCANDIDATEINFO
ci
;
new_context
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
InputContextData
));
...
...
@@ -509,9 +511,19 @@ HIMC WINAPI ImmCreateContext(void)
return
0
;
}
/*
hCompStr is
never NULL */
/*
the HIMCCs are
never NULL */
new_context
->
IMC
.
hCompStr
=
ImmCreateBlankCompStr
();
new_context
->
IMC
.
hMsgBuf
=
ImmCreateIMCC
(
1
);
new_context
->
IMC
.
hMsgBuf
=
ImmCreateIMCC
(
0
);
new_context
->
IMC
.
hCandInfo
=
ImmCreateIMCC
(
sizeof
(
CANDIDATEINFO
));
ci
=
ImmLockIMCC
(
new_context
->
IMC
.
hCandInfo
);
memset
(
ci
,
0
,
sizeof
(
CANDIDATEINFO
));
ci
->
dwSize
=
sizeof
(
CANDIDATEINFO
);
ImmUnlockIMCC
(
new_context
->
IMC
.
hCandInfo
);
new_context
->
IMC
.
hGuideLine
=
ImmCreateIMCC
(
sizeof
(
GUIDELINE
));
gl
=
ImmLockIMCC
(
new_context
->
IMC
.
hGuideLine
);
memset
(
gl
,
0
,
sizeof
(
GUIDELINE
));
gl
->
dwSize
=
sizeof
(
GUIDELINE
);
ImmUnlockIMCC
(
new_context
->
IMC
.
hGuideLine
);
/* Initialize the IME Private */
new_context
->
IMC
.
hPrivate
=
ImmCreateIMCC
(
new_context
->
immKbd
->
imeInfo
.
dwPrivateDataSize
);
...
...
include/ddk/imm.h
View file @
3dde049f
...
...
@@ -84,6 +84,24 @@ typedef struct tagCOMPOSITIONSTRING {
DWORD
dwPrivateOffset
;
}
COMPOSITIONSTRING
,
*
LPCOMPOSITIONSTRING
;
typedef
struct
tagGUIDELINE
{
DWORD
dwSize
;
DWORD
dwLevel
;
DWORD
dwIndex
;
DWORD
dwStrLen
;
DWORD
dwStrOffset
;
DWORD
dwPrivateSize
;
DWORD
dwPrivateOffset
;
}
GUIDELINE
,
*
LPGUIDELINE
;
typedef
struct
tagCANDIDATEINFO
{
DWORD
dwSize
;
DWORD
dwCount
;
DWORD
dwOffset
[
32
];
DWORD
dwPrivateSize
;
DWORD
dwPrivateOffset
;
}
CANDIDATEINFO
,
*
LPCANDIDATEINFO
;
LPINPUTCONTEXT
WINAPI
ImmLockIMC
(
HIMC
);
BOOL
WINAPI
ImmUnlockIMC
(
HIMC
);
DWORD
WINAPI
ImmGetIMCLockCount
(
HIMC
);
...
...
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