From: Eric Pouech <epouech(a)codeweavers.com> Signed-off-by: Eric Pouech <epouech(a)codeweavers.com> --- dlls/dssenh/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/dssenh/main.c b/dlls/dssenh/main.c index 887319d0a9d..12cbebc774a 100644 --- a/dlls/dssenh/main.c +++ b/dlls/dssenh/main.c @@ -162,7 +162,7 @@ static void destroy_key( struct key *key ) { if (!key) return; BCryptDestroyKey( key->handle ); - key->magic = 0; + SecureZeroMemory( &key->magic, sizeof(key->magic) ); free( key ); } @@ -213,7 +213,7 @@ static void destroy_container( struct container *container ) if (!container) return; destroy_key( container->exch_key ); destroy_key( container->sign_key ); - container->magic = 0; + SecureZeroMemory( &container->magic, sizeof(container->magic) ); free( container ); } @@ -821,7 +821,7 @@ static void destroy_hash( struct hash *hash ) { if (!hash) return; BCryptDestroyHash( hash->handle ); - hash->magic = 0; + SecureZeroMemory( &hash->magic, sizeof(hash->magic) ); free( hash ); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4325