ncrypt/tests: Don't use uninitialized variable in test_get_property.
This commit is contained in:
parent
1580c1133a
commit
0db8c0184e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue