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
5b598f2e
Commit
5b598f2e
authored
Oct 13, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Sign-compare warnings fix.
parent
c97d498f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
imm.c
dlls/imm32/imm.c
+5
-5
No files found.
dlls/imm32/imm.c
View file @
5b598f2e
...
@@ -2349,7 +2349,7 @@ DWORD WINAPI ImmGetImeMenuItemsA( HIMC hIMC, DWORD dwFlags, DWORD dwType,
...
@@ -2349,7 +2349,7 @@ DWORD WINAPI ImmGetImeMenuItemsA( HIMC hIMC, DWORD dwFlags, DWORD dwType,
}
}
if
(
lpImeMenu
&&
rc
)
if
(
lpImeMenu
&&
rc
)
{
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
rc
;
i
++
)
for
(
i
=
0
;
i
<
rc
;
i
++
)
{
{
memcpy
(
&
lpImeMenu
[
i
],
&
lpImeMenuW
[
1
],
sizeof
(
IMEMENUITEMINFOA
));
memcpy
(
&
lpImeMenu
[
i
],
&
lpImeMenuW
[
1
],
sizeof
(
IMEMENUITEMINFOA
));
...
@@ -2412,7 +2412,7 @@ DWORD WINAPI ImmGetImeMenuItemsW( HIMC hIMC, DWORD dwFlags, DWORD dwType,
...
@@ -2412,7 +2412,7 @@ DWORD WINAPI ImmGetImeMenuItemsW( HIMC hIMC, DWORD dwFlags, DWORD dwType,
}
}
if
(
lpImeMenu
&&
rc
)
if
(
lpImeMenu
&&
rc
)
{
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
rc
;
i
++
)
for
(
i
=
0
;
i
<
rc
;
i
++
)
{
{
memcpy
(
&
lpImeMenu
[
i
],
&
lpImeMenuA
[
1
],
sizeof
(
IMEMENUITEMINFOA
));
memcpy
(
&
lpImeMenu
[
i
],
&
lpImeMenuA
[
1
],
sizeof
(
IMEMENUITEMINFOA
));
...
@@ -2559,7 +2559,7 @@ BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
...
@@ -2559,7 +2559,7 @@ BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
if
(
data
->
IMC
.
dwNumMsgBuf
>
0
)
if
(
data
->
IMC
.
dwNumMsgBuf
>
0
)
{
{
LPTRANSMSG
lpTransMsg
;
LPTRANSMSG
lpTransMsg
;
INT
i
;
DWORD
i
;
lpTransMsg
=
(
LPTRANSMSG
)
ImmLockIMCC
(
data
->
IMC
.
hMsgBuf
);
lpTransMsg
=
(
LPTRANSMSG
)
ImmLockIMCC
(
data
->
IMC
.
hMsgBuf
);
for
(
i
=
0
;
i
<
data
->
IMC
.
dwNumMsgBuf
;
i
++
)
for
(
i
=
0
;
i
<
data
->
IMC
.
dwNumMsgBuf
;
i
++
)
...
@@ -2586,7 +2586,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
...
@@ -2586,7 +2586,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
LPVOID
list
=
0
;
LPVOID
list
=
0
;
UINT
msg_count
;
UINT
msg_count
;
UINT
uVirtKey
;
UINT
uVirtKey
;
static
const
int
list_count
=
10
;
static
const
DWORD
list_count
=
10
;
TRACE
(
"%p %x %x %x
\n
"
,
hwnd
,
msg
,
(
UINT
)
wParam
,
(
UINT
)
lKeyData
);
TRACE
(
"%p %x %x %x
\n
"
,
hwnd
,
msg
,
(
UINT
)
wParam
,
(
UINT
)
lKeyData
);
...
@@ -2621,7 +2621,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
...
@@ -2621,7 +2621,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
TRACE
(
"%i messages generated
\n
"
,
msg_count
);
TRACE
(
"%i messages generated
\n
"
,
msg_count
);
if
(
msg_count
&&
msg_count
<=
list_count
)
if
(
msg_count
&&
msg_count
<=
list_count
)
{
{
int
i
;
UINT
i
;
LPTRANSMSG
msgs
=
(
LPTRANSMSG
)((
LPBYTE
)
list
+
sizeof
(
DWORD
));
LPTRANSMSG
msgs
=
(
LPTRANSMSG
)((
LPBYTE
)
list
+
sizeof
(
DWORD
));
for
(
i
=
0
;
i
<
msg_count
;
i
++
)
for
(
i
=
0
;
i
<
msg_count
;
i
++
)
...
...
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