[PATCH 2/2] bcrypt: Return STATUS_INVALID_PARAMETER when invalid flag passed to BCryptCreateHash.

Hans Leidekker hans at codeweavers.com
Tue Mar 5 03:05:43 CST 2019


On Tue, 2019-03-05 at 19:52 +1100, Brendan McGrath wrote:
> @@ -602,7 +602,7 @@ NTSTATUS WINAPI BCryptCreateHash( BCRYPT_ALG_HANDLE algorithm, BCRYPT_HASH_HANDL
>      if (flags)
>      {
>          FIXME( "unimplemented flags %08x\n", flags );
> -        return STATUS_NOT_IMPLEMENTED;
> +        return STATUS_INVALID_PARAMETER;

Now you're rejecting all flags while native accepts at least
BCRYPT_HASH_REUSABLE_FLAG, according to the documentation.




More information about the wine-devel mailing list