[winpr,ncrypt] do not abort test if NCryptEnumKeys fails

This commit is contained in:
akallabeth 2024-09-12 10:07:32 +02:00
parent f9141fb94b
commit 6481993305
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -154,7 +154,10 @@ int TestNCryptSmartcard(int argc, char* argv[])
NCryptFreeObject((NCRYPT_HANDLE)provider);
if (status != NTE_NO_MORE_ITEMS)
goto fail;
{
(void)fprintf(stderr, "NCryptEnumKeys returned %s [0x%08" PRIx32 "]\n",
Win32ErrorCode2Tag(status), status);
}
}
rc = 0;