From 70e02ce73c627837ad6ca1b1d8c6a91b7bb4dbd0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 2 Nov 2017 10:16:27 +0100 Subject: [PATCH] wldap32: Use WINAPIV calling convention for variadic functions. Signed-off-by: Alexandre Julliard --- dlls/wldap32/ber.c | 4 ++-- include/winldap.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wldap32/ber.c b/dlls/wldap32/ber.c index 41acd7073fa..c2c6f269490 100644 --- a/dlls/wldap32/ber.c +++ b/dlls/wldap32/ber.c @@ -322,7 +322,7 @@ ULONG CDECL WLDAP32_ber_skip_tag( BerElement *berelement, ULONG *len ) * berelement must have been allocated with ber_alloc_t. This function * can be called multiple times to append data. */ -INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... ) +INT WINAPIV WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... ) { #ifdef HAVE_LDAP __ms_va_list list; @@ -417,7 +417,7 @@ INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... ) * berelement must have been allocated with ber_init. This function * can be called multiple times to decode data. */ -INT CDECL WLDAP32_ber_scanf( BerElement *berelement, PCHAR fmt, ... ) +INT WINAPIV WLDAP32_ber_scanf( BerElement *berelement, PCHAR fmt, ... ) { #ifdef HAVE_LDAP __ms_va_list list; diff --git a/include/winldap.h b/include/winldap.h index 2014e0696a4..e5c1faa3c1e 100644 --- a/include/winldap.h +++ b/include/winldap.h @@ -628,9 +628,9 @@ void CDECL ber_free(BerElement*,INT); BerElement* CDECL ber_init(BERVAL*); ULONG CDECL ber_next_element(BerElement*,ULONG*,CHAR*); ULONG CDECL ber_peek_tag(BerElement*,ULONG*); -INT CDECL ber_printf(BerElement*,PCHAR,...); +INT WINAPIV ber_printf(BerElement*,PCHAR,...); ULONG CDECL ber_skip_tag(BerElement*,ULONG*); -INT CDECL ber_scanf(BerElement*,PCHAR,...); +INT WINAPIV ber_scanf(BerElement*,PCHAR,...); ULONG CDECL LdapGetLastError(void); ULONG CDECL LdapMapErrorToWin32(ULONG);