Fixed the signature of the FormatMessage APIs.

This commit is contained in:
Francois Gouget 2000-10-13 23:41:12 +00:00 committed by Alexandre Julliard
parent 83804d28ee
commit eb6500fba9
2 changed files with 9 additions and 6 deletions

View file

@ -141,8 +141,9 @@ DWORD WINAPI FormatMessageA(
DWORD dwLanguageId,
LPSTR lpBuffer,
DWORD nSize,
LPDWORD args /* va_list *args */
va_list* _args
) {
LPDWORD args=(LPDWORD)_args;
#ifdef __i386__
/* This implementation is completely dependant on the format of the va_list on x86 CPUs */
LPSTR target,t;
@ -351,8 +352,9 @@ DWORD WINAPI FormatMessageW(
DWORD dwLanguageId,
LPWSTR lpBuffer,
DWORD nSize,
LPDWORD args /* va_list *args */
va_list* _args
) {
LPDWORD args=(LPDWORD)_args;
#ifdef __i386__
/* This implementation is completely dependant on the format of the va_list on x86 CPUs */
LPSTR target,t;

View file

@ -5,6 +5,9 @@
#include "winnt.h"
#include "pshpack1.h"
#ifndef RC_INVOKED
#include <stdarg.h>
#endif
#ifdef __cplusplus
extern "C" {
@ -1329,10 +1332,8 @@ HRSRC WINAPI FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD);
BOOL WINAPI FlushConsoleInputBuffer(HANDLE);
BOOL WINAPI FlushFileBuffers(HANDLE);
BOOL WINAPI FlushViewOfFile(LPCVOID, DWORD);
DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,
DWORD,LPDWORD);
DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,
DWORD,LPDWORD);
DWORD WINAPI FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,DWORD,va_list*);
DWORD WINAPI FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,DWORD,va_list*);
#define FormatMessage WINELIB_NAME_AW(FormatMessage)
BOOL WINAPI FreeConsole(void);
BOOL WINAPI FreeEnvironmentStringsA(LPSTR);