Re: [PATCH v2 0/1] MR5046: advapi32: CryptEnumProviders doesn't return pdwProvType when szProvName is NULL.
20 Feb
2024
20 Feb
'24
10:33 a.m.
Hans Leidekker (@hans) commented about dlls/advapi32/tests/crypt.c:
ERROR_NO_MORE_ITEMS, GetLastError());
/* check expected versus actual values returned */ + type = -1; + providerLen = -1; result = pCryptEnumProvidersA(dwIndex, NULL, 0, &type, NULL, &providerLen); - ok(result && providerLen==cbName, "expected %i, got %i\n", (int)cbName, (int)providerLen); + ok(result, "expected TRUE, got %ld\n", result); + ok(type==dwType, "expected %ld, got %ld\n", dwType, type); + ok(providerLen==cbName, "expected %i, got %i\n", (int)cbName, (int)providerLen);
Please use spaces around operators, format DWORD with %lu and remove the casts. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5046#note_62020
744
Age (days ago)
744
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hans Leidekker (@hans)