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

This commit is contained in:
Juan Lang 2007-10-10 16:05:49 -07:00 committed by Alexandre Julliard
parent 942fb6c3eb
commit 436a4a283b
1 changed files with 4 additions and 1 deletions

View File

@ -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: