On Tue Mar 31 15:47:00 2026 +0000, Hans Leidekker wrote:
You should initialize the fields before the call: ``` /* Verify the key context was set with CERT_NCRYPT_KEY_SPEC */ size = sizeof(keyContext); keyContext.hCryptProv = keyContext.dwKeySpec = 0; ret = CertGetCertificateContextProperty(context, CERT_KEY_CONTEXT_PROP_ID, &keyContext, &size); ok(ret, "CertGetCertificateContextProperty failed: %08lx\n", GetLastError()); ok(keyContext.hCryptProv != 0, "Expected non-zero hCryptProv, got 0\n"); ok(keyContext.dwKeySpec == CERT_NCRYPT_KEY_SPEC, "Expected dwKeySpec CERT_NCRYPT_KEY_SPEC, got %lx\n", keyContext.dwKeySpec); ``` Did it, thanks
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10521#note_134537