regedit: Use WINAPIV calling convention for variadic functions.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-11-02 10:21:53 +01:00
parent a37358d0f5
commit 7344ac9b72
4 changed files with 7 additions and 7 deletions

View file

@ -64,7 +64,7 @@ static int vmessagebox(HWND hwnd, int buttons, int titleId, int resId, __ms_va_l
return ret;
}
int __cdecl messagebox(HWND hwnd, int buttons, int titleId, int resId, ...)
int WINAPIV messagebox(HWND hwnd, int buttons, int titleId, int resId, ...)
{
__ms_va_list ap;
INT result;
@ -76,7 +76,7 @@ int __cdecl messagebox(HWND hwnd, int buttons, int titleId, int resId, ...)
return result;
}
static void __cdecl error_code_messagebox(HWND hwnd, unsigned int msg_id, ...)
static void WINAPIV error_code_messagebox(HWND hwnd, unsigned int msg_id, ...)
{
__ms_va_list ap;

View file

@ -160,7 +160,7 @@ extern BOOL DeleteKey(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath);
extern BOOL DeleteValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName, BOOL showMessageBox);
extern BOOL RenameValue(HWND hwnd, HKEY hRootKey, LPCWSTR keyPath, LPCWSTR oldName, LPCWSTR newName);
extern BOOL RenameKey(HWND hwnd, HKEY hRootKey, LPCWSTR keyPath, LPCWSTR newName);
extern int __cdecl messagebox(HWND hwnd, int buttons, int titleId, int resId, ...);
extern int WINAPIV messagebox(HWND hwnd, int buttons, int titleId, int resId, ...);
/* hexedit.c */
extern void HexEdit_Register(void);

View file

@ -67,7 +67,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[1536];
__ms_va_list va_args;
@ -82,7 +82,7 @@ void __cdecl output_message(unsigned int id, ...)
__ms_va_end(va_args);
}
void __cdecl error_exit(unsigned int id, ...)
void WINAPIV error_exit(unsigned int id, ...)
{
WCHAR fmt[1536];
__ms_va_list va_args;

View file

@ -24,8 +24,8 @@
#define REG_FORMAT_5 1
#define REG_FORMAT_4 2
void __cdecl output_message(unsigned int id, ...);
void __cdecl error_exit(unsigned int id, ...);
void WINAPIV output_message(unsigned int id, ...);
void WINAPIV error_exit(unsigned int id, ...);
char *GetMultiByteString(const WCHAR *strW);
void *heap_xalloc(size_t size);