Commit 436a4a28 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Allow either NULL or empty strings where one or the other is expected.

parent 942fb6c3
......@@ -3395,7 +3395,10 @@ static void compareAltNameEntry(const CERT_ALT_NAME_ENTRY *expected,
case CERT_ALT_NAME_URL:
case CERT_ALT_NAME_REGISTERED_ID:
ok((!U(*expected).pwszURL && !U(*got).pwszURL) ||
!lstrcmpW(U(*expected).pwszURL, U(*got).pwszURL), "Unexpected name\n");
(!U(*expected).pwszURL && !lstrlenW(U(*got).pwszURL)) ||
(!U(*got).pwszURL && !lstrlenW(U(*expected).pwszURL)) ||
!lstrcmpW(U(*expected).pwszURL, U(*got).pwszURL),
"Unexpected name\n");
break;
case CERT_ALT_NAME_X400_ADDRESS:
case CERT_ALT_NAME_DIRECTORY_NAME:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment