|
|
|
@ -3055,8 +3055,10 @@ int main(char**args,const int argn) |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void get_command_line_args( int * argc, char *** argv ) |
|
|
|
|
{ |
|
|
|
|
#ifndef _DEBUG |
|
|
|
|
#ifdef _WIN32 |
|
|
|
|
void get_command_line_args( int * argc, char *** argv ) |
|
|
|
|
{ |
|
|
|
|
// Get the command line arguments as wchar_t strings
|
|
|
|
|
wchar_t ** wargv = CommandLineToArgvW( GetCommandLineW(), argc ); |
|
|
|
|
if (!wargv) { *argc = 0; *argv = NULL; return; } |
|
|
|
@ -3078,10 +3080,7 @@ void get_command_line_args( int * argc, char *** argv ) |
|
|
|
|
arg += WideCharToMultiByte( CP_UTF8, 0, wargv[i], -1, arg, n, NULL, NULL ) + 1; |
|
|
|
|
} |
|
|
|
|
(*argv)[*argc] = NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifndef _DEBUG |
|
|
|
|
#ifdef _WIN32 |
|
|
|
|
} |
|
|
|
|
int CALLBACK WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow){ |
|
|
|
|
int argc; |
|
|
|
|
char ** argv; |
|
|
|
|