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
7a54be05
Commit
7a54be05
authored
Sep 23, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Sign-compare warnings fix.
parent
610dbbda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
str.c
dlls/crypt32/str.c
+5
-5
No files found.
dlls/crypt32/str.c
View file @
7a54be05
...
...
@@ -167,7 +167,7 @@ static DWORD CRYPT_AddPrefixA(LPCSTR prefix, LPSTR psz, DWORD csz)
if
(
psz
)
{
chars
=
min
(
lstrlenA
(
prefix
),
csz
);
chars
=
min
(
strlen
(
prefix
),
csz
);
memcpy
(
psz
,
prefix
,
chars
);
*
(
psz
+
chars
)
=
'='
;
chars
++
;
...
...
@@ -304,7 +304,7 @@ static DWORD CRYPT_AddPrefixAToW(LPCSTR prefix, LPWSTR psz, DWORD csz)
{
DWORD
i
;
chars
=
min
(
lstrlenA
(
prefix
),
csz
);
chars
=
min
(
strlen
(
prefix
),
csz
);
for
(
i
=
0
;
i
<
chars
;
i
++
)
*
(
psz
+
i
)
=
prefix
[
i
];
*
(
psz
+
chars
)
=
'='
;
...
...
@@ -328,7 +328,7 @@ static DWORD CRYPT_AddPrefixW(LPCWSTR prefix, LPWSTR psz, DWORD csz)
if
(
psz
)
{
chars
=
min
(
l
strlenW
(
prefix
),
csz
);
chars
=
min
(
strlenW
(
prefix
),
csz
);
memcpy
(
psz
,
prefix
,
chars
*
sizeof
(
WCHAR
));
*
(
psz
+
chars
)
=
'='
;
chars
++
;
...
...
@@ -478,7 +478,7 @@ BOOL WINAPI CertStrToNameA(DWORD dwCertEncodingType, LPCSTR pszX500,
{
if
(
!
ret
)
{
DWORD
i
;
LONG
i
;
*
ppszError
=
pszX500
;
for
(
i
=
0
;
i
<
errorStr
-
x500
;
i
++
)
...
...
@@ -665,7 +665,7 @@ static BOOL CRYPT_EncodeValueWithType(DWORD dwCertEncodingType,
{
if
(
value
->
end
>
value
->
start
)
{
DWORD
i
;
LONG
i
;
LPWSTR
ptr
=
(
LPWSTR
)
nameValue
.
Value
.
pbData
;
for
(
i
=
0
;
i
<
value
->
end
-
value
->
start
;
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