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
79ab4339
Commit
79ab4339
authored
Dec 10, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Sign-compare warnings fix.
parent
b6d50aed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
asn.c
dlls/wintrust/asn.c
+2
-1
crypt.c
dlls/wintrust/crypt.c
+3
-3
No files found.
dlls/wintrust/asn.c
View file @
79ab4339
...
...
@@ -2195,7 +2195,8 @@ static BOOL WINAPI CRYPT_AsnDecodeInt(DWORD dwCertEncodingType,
}
else
{
int
val
,
i
;
int
val
;
DWORD
i
;
*
pcbStructInfo
=
sizeof
(
int
);
if
(
blob
->
pbData
[
blob
->
cbData
-
1
]
&
0x80
)
...
...
dlls/wintrust/crypt.c
View file @
79ab4339
...
...
@@ -349,7 +349,7 @@ static BOOL WINTRUST_GetSignedMsgFromCabFile(SIP_SUBJECTINFO *pSubjectInfo,
/* get basic offset & size info */
base_offset
=
SetFilePointer
(
pSubjectInfo
->
hFile
,
0L
,
NULL
,
SEEK_CUR
);
if
(
SetFilePointer
(
pSubjectInfo
->
hFile
,
0
,
NULL
,
SEEK_END
)
==
-
1
)
if
(
SetFilePointer
(
pSubjectInfo
->
hFile
,
0
,
NULL
,
SEEK_END
)
==
INVALID_SET_FILE_POINTER
)
{
TRACE
(
"seek error
\n
"
);
return
FALSE
;
...
...
@@ -357,7 +357,7 @@ static BOOL WINTRUST_GetSignedMsgFromCabFile(SIP_SUBJECTINFO *pSubjectInfo,
cabsize
=
SetFilePointer
(
pSubjectInfo
->
hFile
,
0L
,
NULL
,
SEEK_CUR
);
if
((
cabsize
==
-
1
)
||
(
base_offset
==
-
1
)
||
(
SetFilePointer
(
pSubjectInfo
->
hFile
,
base_offset
,
NULL
,
SEEK_SET
)
==
-
1
))
(
SetFilePointer
(
pSubjectInfo
->
hFile
,
base_offset
,
NULL
,
SEEK_SET
)
==
INVALID_SET_FILE_POINTER
))
{
TRACE
(
"seek error
\n
"
);
return
FALSE
;
...
...
@@ -453,7 +453,7 @@ static BOOL WINTRUST_GetSignedMsgFromCabFile(SIP_SUBJECTINFO *pSubjectInfo,
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
if
(
SetFilePointer
(
pSubjectInfo
->
hFile
,
cert_offset
,
NULL
,
SEEK_SET
)
==
-
1
)
if
(
SetFilePointer
(
pSubjectInfo
->
hFile
,
cert_offset
,
NULL
,
SEEK_SET
)
==
INVALID_SET_FILE_POINTER
)
{
ERR
(
"couldn't seek to cert location
\n
"
);
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