Alexandre Julliard : crypt32:
Fix an uninitialized variable compiler warning.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 27 09:11:11 CDT 2007
Module: wine
Branch: master
Commit: df3ccaba24683eb003e314e6b13fc46dbed5ec99
URL: http://source.winehq.org/git/wine.git/?a=commit;h=df3ccaba24683eb003e314e6b13fc46dbed5ec99
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jun 26 21:30:41 2007 +0200
crypt32: Fix an uninitialized variable compiler warning.
---
dlls/crypt32/str.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/crypt32/str.c b/dlls/crypt32/str.c
index c524b2b..ef2d2e3 100644
--- a/dlls/crypt32/str.c
+++ b/dlls/crypt32/str.c
@@ -876,8 +876,6 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
sizeof(simpleAttributeOIDs[0]); i++)
nameAttr = CertFindRDNAttr(simpleAttributeOIDs[i], info);
}
- else
- ret = 0;
if (!nameAttr)
{
PCERT_EXTENSION ext = CertFindExtension(altNameOID,
@@ -895,13 +893,14 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
* Failing that, look for the first attribute.
*/
FIXME("CERT_NAME_SIMPLE_DISPLAY_TYPE: stub\n");
- ret = 0;
}
}
}
if (nameAttr)
ret = CertRDNValueToStrW(nameAttr->dwValueType, &nameAttr->Value,
- pszNameString, cchNameString);
+ pszNameString, cchNameString);
+ else
+ ret = 0;
if (info)
LocalFree(info);
break;
More information about the wine-cvs
mailing list