crypt32: Allow either NULL or empty strings where one or the other is expected.
This commit is contained in:
parent
942fb6c3eb
commit
436a4a283b
|
@ -3395,7 +3395,10 @@ static void compareAltNameEntry(const CERT_ALT_NAME_ENTRY *expected,
|
||||||
case CERT_ALT_NAME_URL:
|
case CERT_ALT_NAME_URL:
|
||||||
case CERT_ALT_NAME_REGISTERED_ID:
|
case CERT_ALT_NAME_REGISTERED_ID:
|
||||||
ok((!U(*expected).pwszURL && !U(*got).pwszURL) ||
|
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;
|
break;
|
||||||
case CERT_ALT_NAME_X400_ADDRESS:
|
case CERT_ALT_NAME_X400_ADDRESS:
|
||||||
case CERT_ALT_NAME_DIRECTORY_NAME:
|
case CERT_ALT_NAME_DIRECTORY_NAME:
|
||||||
|
|
Loading…
Reference in New Issue