Commit ed6a5e97 authored by Alexandre Julliard's avatar Alexandre Julliard

programs: Make all program entrypoints cdecl.

parent db080b0c
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(arp);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(aspnet_regiis);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -244,7 +244,7 @@ static BOOL ATTRIB_processdirectory(const WCHAR *rootdir, const WCHAR *filespec,
return found;
}
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
WCHAR name[MAX_PATH];
WCHAR *namepart;
......
......@@ -591,7 +591,7 @@ static void usage( void )
" -v More verbose output\n" );
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
static const WCHAR noneW[] = {'n','o','n','e',0};
static const WCHAR mszipW[] = {'m','s','z','i','p',0};
......
......@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(cacls);
int main(int argc, char** argv)
int __cdecl main(int argc, char** argv)
{
int i;
......
......@@ -2419,7 +2419,7 @@ void WCMD_free_commands(CMD_LIST *cmds) {
* winmain().
*/
int wmain (int argc, WCHAR *argvW[])
int __cdecl wmain (int argc, WCHAR *argvW[])
{
int args;
WCHAR *cmdLine = NULL;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(conhost);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(dism);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(dpnsvr);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -145,7 +145,7 @@ static void parse_options( int *argc, char *argv[] )
}
}
int main( int argc, char *argv[] )
int __cdecl main( int argc, char *argv[] )
{
parse_options( &argc, argv );
......
......@@ -89,7 +89,7 @@ static BOOL option_equal(LPCSTR str1, LPCSTR str2)
return !lstrcmpA( str1 + 1, str2 );
}
int main(int argc, char *argv[])
int __cdecl main(int argc, char *argv[])
{
int ret = 0;
char infile[MAX_PATH], outfile[MAX_PATH], actual_name[MAX_PATH];
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(fc);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(find);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(findstr);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(fsutil);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -118,7 +118,7 @@ static int display_computer_name(void)
return 0;
}
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
if (argc > 1)
{
......
......@@ -25,7 +25,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(icacls);
int main(int argc, char** argv)
int __cdecl main(int argc, char** argv)
{
int i;
......
......@@ -54,7 +54,7 @@ static int WINAPIV mywprintf(const WCHAR *format, ...)
return res ? nOut : 0;
}
int wmain(int argc, WCHAR* argv[])
int __cdecl wmain(int argc, WCHAR* argv[])
{
int i, n=0,doabout=0,doconfigure=0;
......
......@@ -374,7 +374,7 @@ static void print_full_information(void)
}
}
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
static const WCHAR slashHelp[] = {'/','?',0};
static const WCHAR slashAll[] = {'/','a','l','l',0};
......
......@@ -19,7 +19,7 @@
#include <windows.h>
#include <loadperf.h>
int main( int argc, char *argv[] )
int __cdecl main( int argc, char *argv[] )
{
return LoadPerfCounterTextStringsW(GetCommandLineW(), FALSE);
}
......@@ -23,7 +23,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(mofcomp);
int wmain( int argc, const WCHAR *argv[] )
int __cdecl wmain( int argc, const WCHAR *argv[] )
{
WINE_FIXME("stub\n");
return 0;
......
......@@ -615,7 +615,7 @@ static int export_tables( struct msidb_state *state )
return 1;
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
struct msidb_state state;
int i, n = 1;
......
......@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(msinfo);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
WCHAR system_info[64];
......
......@@ -294,7 +294,7 @@ static BOOL arg_is(const WCHAR* str1, const WCHAR* str2)
return CompareStringW(LOCALE_USER_DEFAULT, NORM_IGNORECASE, str1, -1, str2, -1) == CSTR_EQUAL;
}
int wmain(int argc, const WCHAR* argv[])
int __cdecl wmain(int argc, const WCHAR* argv[])
{
static const WCHAR helpW[]={'h','e','l','p',0};
static const WCHAR shelpW[]={'/','h','e','l','p',0};
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(netsh);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -348,7 +348,7 @@ static NETSTATPROTOCOLS NETSTAT_get_protocol(WCHAR name[])
return PROT_UNKNOWN;
}
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
WSADATA wsa_data;
BOOL output_stats = FALSE;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(ngen);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -45,7 +45,7 @@ static void usage(void)
" -l Length of send buffer.\n");
}
int main(int argc, char** argv)
int __cdecl main(int argc, char** argv)
{
unsigned int n = 4, i, w = 4000, l = 32;
int res;
......
......@@ -87,7 +87,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
WINE_TRACE( "service stopped\n" );
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
static const SERVICE_TABLE_ENTRYW service_table[] =
{
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(powershell);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -87,7 +87,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
WINE_TRACE( "service stopped\n" );
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
static const SERVICE_TABLE_ENTRYW service_table[] =
{
......
......@@ -943,7 +943,7 @@ static enum operations get_operation(const WCHAR *str, int *op_help)
return REG_INVALID;
}
int wmain(int argc, WCHAR *argvW[])
int __cdecl wmain(int argc, WCHAR *argvW[])
{
int i, op, op_help, ret;
BOOL show_op_help = FALSE;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(regasm);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(regini);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(regsvcs);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -211,7 +211,7 @@ static WCHAR *parse_command_line(WCHAR *command_line)
return NULL;
}
int wmain(int argc, WCHAR* argv[])
int __cdecl wmain(int argc, WCHAR* argv[])
{
int i, res, ret = 0;
BOOL CallRegister = TRUE;
......
......@@ -148,7 +148,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
TRACE( "service stopped\n" );
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
static const SERVICE_TABLE_ENTRYW service_table[] =
{
......
......@@ -212,7 +212,7 @@ static void usage( void )
exit( 1 );
}
int wmain( int argc, const WCHAR *argv[] )
int __cdecl wmain( int argc, const WCHAR *argv[] )
{
static const WCHAR createW[] = {'c','r','e','a','t','e',0};
static const WCHAR descriptionW[] = {'d','e','s','c','r','i','p','t','i','o','n',0};
......
......@@ -345,7 +345,7 @@ static int delete_command(int argc, WCHAR *argv[])
return 0;
}
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i, ret = 0;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(sdbinst);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -16,7 +16,7 @@
#include <stdlib.h>
int main( int argc, char *argv[] )
int __cdecl main( int argc, char *argv[] )
{
return 0;
}
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(svcmodelreg);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -1267,7 +1267,7 @@ static void load_registry_parameters(void)
RegCloseKey( key );
}
int main(int argc, char *argv[])
int __cdecl main(int argc, char *argv[])
{
static const WCHAR service_current_key_str[] = { 'S','Y','S','T','E','M','\\',
'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\',
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(shutdown);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -88,7 +88,7 @@ static void WINAPI serv_main(DWORD argc, LPWSTR *argv)
WINE_TRACE( "service stopped\n" );
}
int main(int argc, char **argv)
int __cdecl main(int argc, char **argv)
{
static const SERVICE_TABLE_ENTRYW servtbl[] = {
{spoolerW, serv_main},
......
......@@ -350,7 +350,7 @@ static BOOL search_path(const WCHAR *firstParam, WCHAR **full_path)
return FALSE;
}
int wmain (int argc, WCHAR *argv[])
int __cdecl wmain (int argc, WCHAR *argv[])
{
SHELLEXECUTEINFOW sei;
DWORD creation_flags;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(subst);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -332,7 +332,7 @@ static BOOL LoadGroup(PWCHAR group_name)
}
/* Load svchost group specified on the command line via the /k option */
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int option_index;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(systeminfo);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -525,7 +525,7 @@ static BOOL process_arguments(int argc, WCHAR *argv[])
return TRUE;
}
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int status_code = 0;
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(tasklist);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -87,7 +87,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
WINE_TRACE( "service stopped\n" );
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
static const SERVICE_TABLE_ENTRYW service_table[] =
{
......
......@@ -157,7 +157,7 @@ static void RemoveSpecificProgram(WCHAR *nameW)
}
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
LPCWSTR token = NULL;
static const WCHAR helpW[] = { '-','-','h','e','l','p',0 };
......
......@@ -19,7 +19,7 @@
#include <windows.h>
#include <loadperf.h>
int main( int argc, char *argv[] )
int __cdecl main( int argc, char *argv[] )
{
return UnloadPerfCounterTextStringsW(GetCommandLineW(), FALSE);
}
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(wevtutil);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -141,7 +141,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
CloseHandle( stop_event );
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
SERVICE_TABLE_ENTRYW service_table[2];
......
......@@ -254,7 +254,7 @@ static void show_usage( void )
);
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
if (argc < 3 || argv[1][0] != '-')
{
......
......@@ -1237,7 +1237,7 @@ usage (void)
" -x DIR Extract tests to DIR (default: .\\wct) and exit\n");
}
int main( int argc, char *argv[] )
int __cdecl main( int argc, char *argv[] )
{
BOOL (WINAPI *pIsWow64Process)(HANDLE hProcess, PBOOL Wow64Process);
char *logname = NULL, *outdir = NULL;
......
......@@ -486,7 +486,7 @@ static void usage(void)
/***********************************************************************
* main
*/
int main( int argc, char *argv[] )
int __cdecl main( int argc, char *argv[] )
{
DWORD count;
HINSTANCE16 instance;
......
......@@ -87,7 +87,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
TRACE( "service stopped\n" );
}
int wmain( int argc, WCHAR *argv[] )
int __cdecl wmain( int argc, WCHAR *argv[] )
{
static const SERVICE_TABLE_ENTRYW service_table[] =
{
......
......@@ -265,7 +265,7 @@ done:
return ret;
}
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
static const WCHAR getW[] = {'g','e','t',0};
static const WCHAR quitW[] = {'q','u','i','t',0};
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(wmplayer);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -89,7 +89,7 @@ static void WINAPI serv_main(DWORD argc, LPWSTR *argv)
WINE_TRACE( "service stopped\n" );
}
int main(int argc, char **argv)
int __cdecl main(int argc, char **argv)
{
static const SERVICE_TABLE_ENTRYW servtbl[] =
{
......
......@@ -20,7 +20,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(wusa);
int wmain(int argc, WCHAR *argv[])
int __cdecl wmain(int argc, WCHAR *argv[])
{
int i;
......
......@@ -1087,7 +1087,7 @@ static int XCOPY_ProcessDestParm(WCHAR *supplieddestination, WCHAR *stem, WCHAR
Processes the args, and drives the actual copying
========================================================================= */
int wmain (int argc, WCHAR *argvW[])
int __cdecl wmain (int argc, WCHAR *argvW[])
{
int rc = 0;
WCHAR suppliedsource[MAX_PATH] = {0}; /* As supplied on the cmd line */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment