crypt32: Fix Quote-Handling

Juan Lang juan.lang at
Mon Jan 10 17:02:24 CST 2011

Hi Christian,

> As tested on Windows(R) 7 Home Premium x64, "CertRDNValueToStr" Doesn't
> handle the quoting.
> Instead it's made on "CertNameToStr" with CERT_X500_NAME_STR flag.

Adding tests that demonstrate that would help a great deal.

A minor comment regarding the patch itself:

+/* Only use this function internally. */
+static DWORD QuoteCertRDNValueToStrA(DWORD dwValueType,

Don't use Hungarian notation for internal functions, it's hard to
distinguish them from Win32 API functions.

More information about the wine-devel mailing list