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
dda80531
Commit
dda80531
authored
Oct 20, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Always set *ppszError.
parent
e0b8e37b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
str.c
dlls/crypt32/str.c
+11
-4
No files found.
dlls/crypt32/str.c
View file @
dda80531
...
...
@@ -475,11 +475,16 @@ BOOL WINAPI CertStrToNameA(DWORD dwCertEncodingType, LPCSTR pszX500,
ppszError
?
(
LPCWSTR
*
)
&
errorStr
:
NULL
);
if
(
ppszError
)
{
DWORD
i
;
if
(
!
ret
)
{
DWORD
i
;
*
ppszError
=
pszX500
;
for
(
i
=
0
;
i
<
errorStr
-
x500
;
i
++
)
*
ppszError
=
CharNextA
(
*
ppszError
);
*
ppszError
=
pszX500
;
for
(
i
=
0
;
i
<
errorStr
-
x500
;
i
++
)
*
ppszError
=
CharNextA
(
*
ppszError
);
}
else
*
ppszError
=
NULL
;
}
CryptMemFree
(
x500
);
}
...
...
@@ -827,6 +832,8 @@ BOOL WINAPI CertStrToNameW(DWORD dwCertEncodingType, LPCWSTR pszX500,
CRYPT_FreeKeynameKeeper
(
&
keeper
);
if
(
!
error
)
{
if
(
ppszError
)
*
ppszError
=
NULL
;
ret
=
CryptEncodeObjectEx
(
dwCertEncodingType
,
X509_NAME
,
&
info
,
0
,
NULL
,
pbEncoded
,
pcbEncoded
);
for
(
i
=
0
;
i
<
info
.
cRDN
;
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