1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ncrypt/tests: Don't use uninitialized variable in test_get_property.

This commit is contained in:
Jacek Caban 2024-01-29 13:52:05 +01:00 committed by Alexandre Julliard
parent 1580c1133a
commit 0db8c0184e

View file

@ -382,7 +382,7 @@ static void test_get_property(void)
ret = NCryptOpenStorageProvider(&prov, NULL, 0);
ok(ret == ERROR_SUCCESS, "got %#lx\n", ret);
ret = NCryptGetProperty(0, NCRYPT_LENGTH_PROPERTY, (BYTE *)&keylength, size, &size, 0);
ret = NCryptGetProperty(0, NCRYPT_LENGTH_PROPERTY, (BYTE *)&keylength, sizeof(keylength), &size, 0);
ok(ret == NTE_INVALID_HANDLE, "got %#lx\n", ret);
ret = NCryptImportKey(prov, 0, BCRYPT_RSAPUBLIC_BLOB, NULL, &key, rsa_key_blob, sizeof(rsa_key_blob), 0);