https://bugs.winehq.org/show_bug.cgi?id=56305
Bug ID: 56305 Summary: CryptEnumProviders doesn't set pdwProvType when szProvName is NULL Product: Wine Version: 9.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: advapi32 Assignee: wine-bugs@winehq.org Reporter: dm.klionsky@gmail.com Distribution: ---
The call like below doesn't changes dwType.
``` DWORD dwIndex = 0; DWORD dwType = -1; DWORD cbName = -1;
CryptEnumProviders(dwIndex, NULL, 0, &dwType, NULL, &cbName); ```
At the same time the call like below does change dwType.
``` CryptEnumProviders(dwIndex, NULL, 0, &dwType, "Microsoft Base Cryptographic Provider v1.0", &cbName); ```
https://bugs.winehq.org/show_bug.cgi?id=56305
--- Comment #1 from Dmitry Klionsky dm.klionsky@gmail.com --- The whole point of this call
``` CryptEnumProviders(dwIndex, NULL, 0, &dwType, NULL, &cbName); ```
is to iterate over all providers looking for a specific dwType.
https://bugs.winehq.org/show_bug.cgi?id=56305
--- Comment #2 from Dmitry Klionsky dm.klionsky@gmail.com --- https://gitlab.winehq.org/wine/wine/-/merge_requests/5046