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
55d243d4
Commit
55d243d4
authored
Jan 08, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Avoid pointer casts in traces.
parent
dedf5e49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
imm.c
dlls/imm32/imm.c
+7
-7
No files found.
dlls/imm32/imm.c
View file @
55d243d4
...
...
@@ -108,7 +108,7 @@ static const WCHAR szwWineIMCProperty[] = {'W','i','n','e','I','m','m','H','I','
static
const
WCHAR
szImeFileW
[]
=
{
'I'
,
'm'
,
'e'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
szLayoutTextW
[]
=
{
'L'
,
'a'
,
'y'
,
'o'
,
'u'
,
't'
,
' '
,
'T'
,
'e'
,
'x'
,
't'
,
0
};
static
const
WCHAR
szImeRegFmt
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'\\'
,
'K'
,
'e'
,
'y'
,
'b'
,
'o'
,
'a'
,
'r'
,
'd'
,
' '
,
'L'
,
'a'
,
'y'
,
'o'
,
'u'
,
't'
,
's'
,
'\\'
,
'%'
,
'0'
,
'8'
,
'x'
,
0
};
static
const
WCHAR
szImeRegFmt
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'\\'
,
'K'
,
'e'
,
'y'
,
'b'
,
'o'
,
'a'
,
'r'
,
'd'
,
' '
,
'L'
,
'a'
,
'y'
,
'o'
,
'u'
,
't'
,
's'
,
'\\'
,
'%'
,
'0'
,
'8'
,
'
l'
,
'
x'
,
0
};
#define is_himc_ime_unicode(p) (p->immKbd->imeInfo.fdwProperty & IME_PROP_UNICODE)
...
...
@@ -279,7 +279,7 @@ static ImmHkl *IMM_GetImmHkl(HKL hkl)
ImmHkl
*
ptr
;
WCHAR
filename
[
MAX_PATH
];
TRACE
(
"Seeking ime for keyboard
0x%x
\n
"
,(
unsigned
)
hkl
);
TRACE
(
"Seeking ime for keyboard
%p
\n
"
,
hkl
);
LIST_FOR_EACH_ENTRY
(
ptr
,
&
ImmHklList
,
ImmHkl
,
entry
)
{
...
...
@@ -658,7 +658,7 @@ HIMC WINAPI ImmCreateContext(void)
}
new_context
->
immKbd
->
uSelected
++
;
TRACE
(
"Created context
0x%x
\n
"
,(
UINT
)
new_context
);
TRACE
(
"Created context
%p
\n
"
,
new_context
);
return
new_context
;
}
...
...
@@ -1480,7 +1480,7 @@ BOOL WINAPI ImmGetConversionStatus(
*/
HWND
WINAPI
ImmGetDefaultIMEWnd
(
HWND
hWnd
)
{
TRACE
(
"Default is %
x
\n
"
,(
unsigned
)
IMM_GetThreadData
()
->
hwndDefault
);
TRACE
(
"Default is %
p
\n
"
,
IMM_GetThreadData
()
->
hwndDefault
);
return
IMM_GetThreadData
()
->
hwndDefault
;
}
...
...
@@ -1597,7 +1597,7 @@ UINT WINAPI ImmGetIMEFileNameW(HKL hKL, LPWSTR lpszFileName, UINT uBufLen)
DWORD
rc
;
WCHAR
regKey
[
sizeof
(
szImeRegFmt
)
/
sizeof
(
WCHAR
)
+
8
];
wsprintfW
(
regKey
,
szImeRegFmt
,
(
unsigned
)
hKL
);
wsprintfW
(
regKey
,
szImeRegFmt
,
(
ULONG_PTR
)
hKL
);
rc
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
regKey
,
&
hkey
);
if
(
rc
!=
ERROR_SUCCESS
)
{
...
...
@@ -1819,8 +1819,8 @@ HKL WINAPI ImmInstallIMEW(
{
DWORD
disposition
=
0
;
hkl
=
(
HKL
)
(((
0xe000
|
count
)
<<
16
)
|
lcid
);
wsprintfW
(
regKey
,
szImeRegFmt
,
(
unsigned
)
hkl
);
hkl
=
(
HKL
)
MAKELPARAM
(
lcid
,
0xe000
|
count
);
wsprintfW
(
regKey
,
szImeRegFmt
,
(
ULONG_PTR
)
hkl
);
rc
=
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
regKey
,
0
,
NULL
,
0
,
KEY_WRITE
,
NULL
,
&
hkey
,
&
disposition
);
if
(
rc
==
ERROR_SUCCESS
&&
disposition
==
REG_CREATED_NEW_KEY
)
...
...
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