From dc3bc64b8685aeec3ab461e632a1604833ed6fd6 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 26 Apr 2015 15:57:43 +0200 Subject: Windows: Better command line handling to make it more strict and robust. This avoids issues when using wrong syntax. --- src/Common/Cmdline.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Common/Cmdline.h') diff --git a/src/Common/Cmdline.h b/src/Common/Cmdline.h index 7192c537..8218c39b 100644 --- a/src/Common/Cmdline.h +++ b/src/Common/Cmdline.h @@ -33,8 +33,8 @@ typedef struct argumentspec_t BOOL CALLBACK CommandHelpDlgProc ( HWND hwndDlg , UINT msg , WPARAM wParam , LPARAM lParam ); int Win32CommandLine ( char *lpszCommandLine , char ***lpszArgs ); int GetArgSepPosOffset ( char *lpszArgument ); -int GetArgumentID ( argumentspec *as , char *lpszArgument , int *nArgPos ); -int GetArgumentValue ( char **lpszCommandLineArgs , int nArgPos , int *nArgIdx , int nNoCommandLineArgs , char *lpszValue , int nValueSize ); +int GetArgumentID ( argumentspec *as , char *lpszArgument ); +int GetArgumentValue ( char **lpszCommandLineArgs , int *nArgIdx , int nNoCommandLineArgs , char *lpszValue , int nValueSize ); #ifdef __cplusplus } -- cgit v1.2.3