winecrt0: Make the main() and wmain() entry points cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
60df3b14b5
commit
f2a7405a09
|
@ -27,7 +27,7 @@
|
|||
#include "wine/library.h"
|
||||
#include "crt0_private.h"
|
||||
|
||||
extern int main( int argc, char *argv[] );
|
||||
extern int __cdecl main( int argc, char *argv[] );
|
||||
|
||||
DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb )
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
int __cdecl main( int argc, char *argv[] )
|
||||
{
|
||||
STARTUPINFOA info;
|
||||
char *cmdline = GetCommandLineA();
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "wine/library.h"
|
||||
#include "crt0_private.h"
|
||||
|
||||
extern int wmain( int argc, WCHAR *argv[] );
|
||||
extern int __cdecl wmain( int argc, WCHAR *argv[] );
|
||||
|
||||
DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb )
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
int WINAPI wWinMain(HINSTANCE,HINSTANCE,LPWSTR,int);
|
||||
|
||||
int wmain( int argc, WCHAR *argv[] )
|
||||
int __cdecl wmain( int argc, WCHAR *argv[] )
|
||||
{
|
||||
STARTUPINFOW info;
|
||||
WCHAR *cmdline = GetCommandLineW();
|
||||
|
|
|
@ -1255,7 +1255,7 @@ static const struct option long_options[] =
|
|||
{ NULL, 0, 0, 0 }
|
||||
};
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
int __cdecl main( int argc, char *argv[] )
|
||||
{
|
||||
static const WCHAR RunW[] = {'R','u','n',0};
|
||||
static const WCHAR RunOnceW[] = {'R','u','n','O','n','c','e',0};
|
||||
|
|
|
@ -425,7 +425,7 @@ static WCHAR *convert_file_uri(IUri *uri)
|
|||
* Main entry point. This is a console application so we have a wmain() not a
|
||||
* winmain().
|
||||
*/
|
||||
int wmain(int argc, WCHAR *argv[])
|
||||
int __cdecl wmain(int argc, WCHAR *argv[])
|
||||
{
|
||||
static const WCHAR nohomeW[] = {'-','n','o','h','o','m','e',0};
|
||||
|
||||
|
|
|
@ -662,7 +662,7 @@ static void restart_if_wow64(void)
|
|||
}
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
int __cdecl main(int argc, char** argv)
|
||||
{
|
||||
int retv = 0;
|
||||
HANDLE hFile = INVALID_HANDLE_VALUE;
|
||||
|
|
|
@ -144,7 +144,7 @@ static int parse_options(WCHAR *argv[])
|
|||
/*
|
||||
* Main function
|
||||
*/
|
||||
int wmain(int argc, WCHAR *argv[])
|
||||
int __cdecl wmain(int argc, WCHAR *argv[])
|
||||
{
|
||||
LPSTR (*CDECL wine_get_unix_file_name_ptr)(LPCWSTR) = NULL;
|
||||
LPWSTR (*CDECL wine_get_dos_file_name_ptr)(LPCSTR) = NULL;
|
||||
|
|
Loading…
Reference in New Issue