mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:39:43 +00:00
Fixed the signature of the FormatMessage APIs.
This commit is contained in:
parent
83804d28ee
commit
eb6500fba9
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue