From a37358d0f5ab6e447f96f22ceee0da6c34b5355f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 2 Nov 2017 10:21:30 +0100 Subject: [PATCH] reg: Use WINAPIV calling convention for variadic functions. Signed-off-by: Alexandre Julliard --- programs/reg/reg.c | 4 ++-- programs/reg/reg.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/reg/reg.c b/programs/reg/reg.c index fac3d22ea13..42fd6e9daaf 100644 --- a/programs/reg/reg.c +++ b/programs/reg/reg.c @@ -151,7 +151,7 @@ static void output_formatstring(const WCHAR *fmt, __ms_va_list va_args) LocalFree(str); } -void __cdecl output_message(unsigned int id, ...) +void WINAPIV output_message(unsigned int id, ...) { WCHAR fmt[1024]; __ms_va_list va_args; @@ -166,7 +166,7 @@ void __cdecl output_message(unsigned int id, ...) __ms_va_end(va_args); } -static void __cdecl output_string(const WCHAR *fmt, ...) +static void WINAPIV output_string(const WCHAR *fmt, ...) { __ms_va_list va_args; diff --git a/programs/reg/reg.h b/programs/reg/reg.h index 14c05b13d49..07bbecf8d5a 100644 --- a/programs/reg/reg.h +++ b/programs/reg/reg.h @@ -27,7 +27,7 @@ void *heap_xalloc(size_t size); void *heap_xrealloc(void *buf, size_t size); BOOL heap_free(void *buf); -void __cdecl output_message(unsigned int id, ...); +void WINAPIV output_message(unsigned int id, ...); HKEY path_get_rootkey(const WCHAR *path); /* import.c */