[PATCH 2/2] bcrypt: Implement BCryptFreeBuffer().

Hans Leidekker hans at codeweavers.com
Wed Apr 6 04:04:39 CDT 2022


On Wed, 2022-04-06 at 04:50 -0400, Mohamad Al-Jaf wrote:
> On Wed, Apr 6, 2022 at 4:38 AM Hans Leidekker <hans at codeweavers.com> wrote:
> >  void WINAPI BCryptFreeBuffer( void *buffer )
> >  {
> > -    FIXME( "%p\n", buffer );
> > +    free( buffer );
> >  }
> 
> Is this how similar functions are generally implemented? I'm assuming
> this only applies to simple variables and not something like a struct,
> which I think requires freeing each member. I was going to implement
> it myself but I didn't feel confident just one line would suffice.

It depends on how memory is returned to the caller. So far we return flat
buffers, so this is fine.





More information about the wine-devel mailing list