wldap32: Convert ber_printf to use an MS ABI vararg list for x86_64.
This commit is contained in:
parent
55e4c7f14e
commit
71de29b795
|
@ -325,12 +325,12 @@ ULONG CDECL WLDAP32_ber_skip_tag( BerElement *berelement, ULONG *len )
|
||||||
INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... )
|
INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... )
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LDAP
|
#ifdef HAVE_LDAP
|
||||||
va_list list;
|
__ms_va_list list;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
char new_fmt[2];
|
char new_fmt[2];
|
||||||
|
|
||||||
new_fmt[1] = 0;
|
new_fmt[1] = 0;
|
||||||
va_start( list, fmt );
|
__ms_va_start( list, fmt );
|
||||||
while (*fmt)
|
while (*fmt)
|
||||||
{
|
{
|
||||||
new_fmt[0] = *fmt++;
|
new_fmt[0] = *fmt++;
|
||||||
|
@ -391,7 +391,7 @@ INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... )
|
||||||
}
|
}
|
||||||
if (ret == -1) break;
|
if (ret == -1) break;
|
||||||
}
|
}
|
||||||
va_end( list );
|
__ms_va_end( list );
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
#else
|
||||||
return LBER_ERROR;
|
return LBER_ERROR;
|
||||||
|
@ -420,12 +420,12 @@ INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... )
|
||||||
INT CDECL WLDAP32_ber_scanf( BerElement *berelement, PCHAR fmt, ... )
|
INT CDECL WLDAP32_ber_scanf( BerElement *berelement, PCHAR fmt, ... )
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LDAP
|
#ifdef HAVE_LDAP
|
||||||
va_list list;
|
__ms_va_list list;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
char new_fmt[2];
|
char new_fmt[2];
|
||||||
|
|
||||||
new_fmt[1] = 0;
|
new_fmt[1] = 0;
|
||||||
va_start( list, fmt );
|
__ms_va_start( list, fmt );
|
||||||
while (*fmt)
|
while (*fmt)
|
||||||
{
|
{
|
||||||
new_fmt[0] = *fmt++;
|
new_fmt[0] = *fmt++;
|
||||||
|
@ -491,7 +491,7 @@ INT CDECL WLDAP32_ber_scanf( BerElement *berelement, PCHAR fmt, ... )
|
||||||
}
|
}
|
||||||
if (ret == -1) break;
|
if (ret == -1) break;
|
||||||
}
|
}
|
||||||
va_end( list );
|
__ms_va_end( list );
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
#else
|
||||||
return LBER_ERROR;
|
return LBER_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue