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
d24dc4b8
Commit
d24dc4b8
authored
Feb 11, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapi32: Avoid signed-unsigned integer comparisons.
parent
ba7eebfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
sendmail.c
dlls/mapi32/sendmail.c
+10
-8
No files found.
dlls/mapi32/sendmail.c
View file @
d24dc4b8
...
...
@@ -269,7 +269,7 @@ static ULONG sendmail_extended_mapi(LHANDLE mapi_session, ULONG_PTR uiparam, lpM
if
(
message
->
nFileCount
>
0
)
{
ULONG
num_attach
=
0
;
int
i
,
j
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
message
->
nFileCount
;
i
++
)
{
...
...
@@ -294,6 +294,8 @@ static ULONG sendmail_extended_mapi(LHANDLE mapi_session, ULONG_PTR uiparam, lpM
if
(
!
filename
)
{
int
j
;
filename
=
message
->
lpFiles
[
i
].
lpszPathName
;
for
(
j
=
lstrlenW
(
message
->
lpFiles
[
i
].
lpszPathName
)
-
1
;
j
>=
0
;
j
--
)
...
...
@@ -307,7 +309,7 @@ static ULONG sendmail_extended_mapi(LHANDLE mapi_session, ULONG_PTR uiparam, lpM
}
}
TRACE
(
"Attachment %
d
path: '%s'; filename: '%s'
\n
"
,
i
,
debugstr_w
(
message
->
lpFiles
[
i
].
lpszPathName
),
TRACE
(
"Attachment %
u
path: '%s'; filename: '%s'
\n
"
,
i
,
debugstr_w
(
message
->
lpFiles
[
i
].
lpszPathName
),
debugstr_w
(
filename
));
/* Create the attachment */
...
...
@@ -504,7 +506,7 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam,
if
(
message
->
nFileCount
&&
message
->
lpFiles
)
{
lpMapiFileDescW
filesW
;
int
i
;
unsigned
int
i
;
filesW
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
MapiFileDescW
)
*
message
->
nFileCount
);
...
...
@@ -522,7 +524,7 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam,
/* Now free everything we allocated */
if
(
message
->
nFileCount
&&
message
->
lpFiles
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
message
->
nFileCount
;
i
++
)
{
...
...
@@ -623,7 +625,7 @@ ULONG WINAPI MAPISendMailW(LHANDLE session, ULONG_PTR uiparam,
if
(
message
->
nRecipCount
&&
message
->
lpRecips
)
{
lpMapiRecipDesc
recipsA
;
int
i
;
unsigned
int
i
;
recipsA
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
MapiRecipDesc
)
*
message
->
nRecipCount
);
...
...
@@ -638,7 +640,7 @@ ULONG WINAPI MAPISendMailW(LHANDLE session, ULONG_PTR uiparam,
if
(
message
->
nFileCount
&&
message
->
lpFiles
)
{
lpMapiFileDesc
filesA
;
int
i
;
unsigned
int
i
;
filesA
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
MapiFileDesc
)
*
message
->
nFileCount
);
...
...
@@ -666,7 +668,7 @@ ULONG WINAPI MAPISendMailW(LHANDLE session, ULONG_PTR uiparam,
if
(
message
->
nRecipCount
&&
message
->
lpRecips
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
message
->
nRecipCount
;
i
++
)
{
...
...
@@ -679,7 +681,7 @@ ULONG WINAPI MAPISendMailW(LHANDLE session, ULONG_PTR uiparam,
if
(
message
->
nFileCount
&&
message
->
lpFiles
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
message
->
nFileCount
;
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