Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dcb8c874
Commit
dcb8c874
authored
Oct 22, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Return FALSE if the requested URL exists and the url array size is NULL.
parent
681a408a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+3
-0
cryptnet.c
dlls/cryptnet/tests/cryptnet.c
+0
-2
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
dcb8c874
...
...
@@ -174,7 +174,10 @@ static BOOL WINAPI CRYPT_GetUrlFromCertificateCRLDistPoint(LPCSTR pszUrlOid,
}
}
if
(
!
pcbUrlArray
)
{
SetLastError
(
E_INVALIDARG
);
ret
=
FALSE
;
}
else
if
(
!
pUrlArray
)
*
pcbUrlArray
=
bytesNeeded
;
else
if
(
*
pcbUrlArray
<
bytesNeeded
)
...
...
dlls/cryptnet/tests/cryptnet.c
View file @
dcb8c874
...
...
@@ -175,13 +175,11 @@ static void test_getObjectUrl(void)
SetLastError
(
0xdeadbeef
);
ret
=
CryptGetObjectUrl
(
URL_OID_CERTIFICATE_CRL_DIST_POINT
,
(
void
*
)
cert
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
CryptGetObjectUrl
(
URL_OID_CERTIFICATE_CRL_DIST_POINT
,
(
void
*
)
cert
,
0
,
NULL
,
NULL
,
NULL
,
&
infoSize
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
/* Can get it without specifying the location: */
...
...
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