Francois Gouget : cryptui: Avoid an unneeded strlen() call.
Alexandre Julliard
julliard at winehq.org
Tue Dec 11 15:58:17 CST 2018
Module: wine
Branch: master
Commit: 804eb5c4354d47fa887b17788647ed67480a37b6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=804eb5c4354d47fa887b17788647ed67480a37b6
Author: Francois Gouget <fgouget at free.fr>
Date: Tue Dec 11 05:11:01 2018 +0100
cryptui: Avoid an unneeded strlen() call.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/cryptui/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index a100419..41938f5 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -3497,7 +3497,7 @@ static void set_general_cert_properties(HWND hwnd, struct edit_cert_data *data)
static void set_cert_string_property(PCCERT_CONTEXT cert, DWORD prop,
LPWSTR str)
{
- if (str && strlenW(str))
+ if (str && *str)
{
CRYPT_DATA_BLOB blob;
More information about the wine-cvs
mailing list