[PATCH 0/1] MR9665: libs/ldap: Consistently use unicode version of QueryContextAttributes().
From: Dmitry Timoshkov <dmitry(a)baikal.ru> Signed-off-by: Dmitry Timoshkov <dmitry(a)baikal.ru> --- libs/ldap/libldap/sasl_w.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ldap/libldap/sasl_w.c b/libs/ldap/libldap/sasl_w.c index 8448ad91bf0..79be3335aab 100644 --- a/libs/ldap/libldap/sasl_w.c +++ b/libs/ldap/libldap/sasl_w.c @@ -256,7 +256,7 @@ static int fill_auth_identity( const sasl_interact_t *prompts, SEC_WINNT_AUTH_ID static ULONG get_key_size( CtxtHandle *ctx ) { SecPkgContext_SessionKey key; - if (QueryContextAttributesA( ctx, SECPKG_ATTR_SESSION_KEY, &key )) return 0; + if (QueryContextAttributesW( ctx, SECPKG_ATTR_SESSION_KEY, &key )) return 0; FreeContextBuffer( key.SessionKey ); return key.SessionKeyLength * 8; } @@ -264,7 +264,7 @@ static ULONG get_key_size( CtxtHandle *ctx ) static ULONG get_trailer_size( CtxtHandle *ctx ) { SecPkgContext_Sizes sizes; - if (QueryContextAttributesA( ctx, SECPKG_ATTR_SIZES, &sizes )) return 0; + if (QueryContextAttributesW( ctx, SECPKG_ATTR_SIZES, &sizes )) return 0; return sizes.cbSecurityTrailer; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9665
This merge request was approved by Hans Leidekker. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9665
participants (3)
-
Dmitry Timoshkov -
Dmitry Timoshkov (@dmitry) -
Hans Leidekker (@hans)