cryptdlg(2/2): Implement FormatVerisignExtension
Alexandre Julliard
julliard at winehq.org
Tue Nov 18 08:58:49 CST 2008
"Juan Lang" <juan.lang at gmail.com> writes:
> + if (dwFormatStrType & CRYPT_FORMAT_STR_NO_HEX)
> + {
> + static BOOL stringLoaded = FALSE;
> + DWORD bytesNeeded;
> +
> + if (!stringLoaded)
> + {
> + LoadStringW(hInstance, IDS_VERISIGN_STATEMENT, verisign_statement,
> + sizeof(verisign_statement) / sizeof(verisign_statement[0]));
> + stringLoaded = TRUE;
> + }
There's no need to store a copy of the string. You should load it
directly into the destination buffer.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list