Andrew Talbot : crypt32: Write-strings warning fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed May 31 05:31:30 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 1523b8f19ef7c47ead4e42622ebf060a7e9cf45f
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=1523b8f19ef7c47ead4e42622ebf060a7e9cf45f
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Tue May 30 20:42:31 2006 +0100
crypt32: Write-strings warning fix.
---
dlls/crypt32/cert.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c
index f4c7a42..3893bdb 100644
--- a/dlls/crypt32/cert.c
+++ b/dlls/crypt32/cert.c
@@ -1647,6 +1647,7 @@ static void CRYPT_MakeCertInfo(PCERT_INF
{
/* FIXME: what serial number to use? */
static const BYTE serialNum[] = { 1 };
+ static CHAR oid[] = szOID_RSA_SHA1RSA;
assert(info);
assert(pSubjectIssuerBlob);
@@ -1660,7 +1661,7 @@ static void CRYPT_MakeCertInfo(PCERT_INF
sizeof(info->SignatureAlgorithm));
else
{
- info->SignatureAlgorithm.pszObjId = szOID_RSA_SHA1RSA;
+ info->SignatureAlgorithm.pszObjId = oid;
info->SignatureAlgorithm.Parameters.cbData = 0;
info->SignatureAlgorithm.Parameters.pbData = NULL;
}
More information about the wine-cvs
mailing list