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
0170a41e
Commit
0170a41e
authored
May 14, 2007
by
Juan Lang
Committed by
Alexandre Julliard
May 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Don't set ret to TRUE when it already is.
Set it to FALSE when it needs to be.
parent
23cfbe2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
cert.c
dlls/crypt32/cert.c
+1
-10
crl.c
dlls/crypt32/crl.c
+1
-4
No files found.
dlls/crypt32/cert.c
View file @
0170a41e
...
@@ -185,20 +185,17 @@ static BOOL WINAPI CertContext_GetProperty(void *context, DWORD dwPropId,
...
@@ -185,20 +185,17 @@ static BOOL WINAPI CertContext_GetProperty(void *context, DWORD dwPropId,
if
(
ret
)
if
(
ret
)
{
{
if
(
!
pvData
)
if
(
!
pvData
)
{
*
pcbData
=
blob
.
cbData
;
*
pcbData
=
blob
.
cbData
;
ret
=
TRUE
;
}
else
if
(
*
pcbData
<
blob
.
cbData
)
else
if
(
*
pcbData
<
blob
.
cbData
)
{
{
SetLastError
(
ERROR_MORE_DATA
);
SetLastError
(
ERROR_MORE_DATA
);
*
pcbData
=
blob
.
cbData
;
*
pcbData
=
blob
.
cbData
;
ret
=
FALSE
;
}
}
else
else
{
{
memcpy
(
pvData
,
blob
.
pbData
,
blob
.
cbData
);
memcpy
(
pvData
,
blob
.
pbData
,
blob
.
cbData
);
*
pcbData
=
blob
.
cbData
;
*
pcbData
=
blob
.
cbData
;
ret
=
TRUE
;
}
}
}
}
else
else
...
@@ -320,10 +317,7 @@ BOOL WINAPI CertGetCertificateContextProperty(PCCERT_CONTEXT pCertContext,
...
@@ -320,10 +317,7 @@ BOOL WINAPI CertGetCertificateContextProperty(PCCERT_CONTEXT pCertContext,
if
(
ret
)
if
(
ret
)
{
{
if
(
!
pvData
)
if
(
!
pvData
)
{
*
pcbData
=
sizeof
(
HCRYPTPROV
);
*
pcbData
=
sizeof
(
HCRYPTPROV
);
ret
=
TRUE
;
}
else
if
(
*
pcbData
<
sizeof
(
HCRYPTPROV
))
else
if
(
*
pcbData
<
sizeof
(
HCRYPTPROV
))
{
{
SetLastError
(
ERROR_MORE_DATA
);
SetLastError
(
ERROR_MORE_DATA
);
...
@@ -331,10 +325,7 @@ BOOL WINAPI CertGetCertificateContextProperty(PCCERT_CONTEXT pCertContext,
...
@@ -331,10 +325,7 @@ BOOL WINAPI CertGetCertificateContextProperty(PCCERT_CONTEXT pCertContext,
ret
=
FALSE
;
ret
=
FALSE
;
}
}
else
else
{
*
(
HCRYPTPROV
*
)
pvData
=
keyContext
.
hCryptProv
;
*
(
HCRYPTPROV
*
)
pvData
=
keyContext
.
hCryptProv
;
ret
=
TRUE
;
}
}
}
break
;
break
;
}
}
...
...
dlls/crypt32/crl.c
View file @
0170a41e
...
@@ -302,20 +302,17 @@ static BOOL WINAPI CRLContext_GetProperty(void *context, DWORD dwPropId,
...
@@ -302,20 +302,17 @@ static BOOL WINAPI CRLContext_GetProperty(void *context, DWORD dwPropId,
if
(
ret
)
if
(
ret
)
{
{
if
(
!
pvData
)
if
(
!
pvData
)
{
*
pcbData
=
blob
.
cbData
;
*
pcbData
=
blob
.
cbData
;
ret
=
TRUE
;
}
else
if
(
*
pcbData
<
blob
.
cbData
)
else
if
(
*
pcbData
<
blob
.
cbData
)
{
{
SetLastError
(
ERROR_MORE_DATA
);
SetLastError
(
ERROR_MORE_DATA
);
*
pcbData
=
blob
.
cbData
;
*
pcbData
=
blob
.
cbData
;
ret
=
FALSE
;
}
}
else
else
{
{
memcpy
(
pvData
,
blob
.
pbData
,
blob
.
cbData
);
memcpy
(
pvData
,
blob
.
pbData
,
blob
.
cbData
);
*
pcbData
=
blob
.
cbData
;
*
pcbData
=
blob
.
cbData
;
ret
=
TRUE
;
}
}
}
}
else
else
...
...
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