rid lousy getarg parser in favor of CommandLineToArgvW
This commit is contained in:
1 parent
2e8f6226e3
commit
63924059e2
3 files changed
+10
-68
No files matched your search
+6
-2
@@ -80,13 +80,17 @@ int sigar_proc_exe_peb_get(sigar_t *sigar, HANDLE proc,
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
static int sigar_parse_proc_args(sigar_t *sigar, WCHAR *buf,
|
||||
sigar_proc_args_t *procargs)
|
||||
int sigar_parse_proc_args(sigar_t *sigar, WCHAR *buf,
|
||||
sigar_proc_args_t *procargs)
|
||||
{
|
||||
char arg[SIGAR_CMDLINE_MAX];
|
||||
LPWSTR *args;
|
||||
int num, i;
|
||||
|
||||
if (!buf) {
|
||||
buf = GetCommandLine();
|
||||
}
|
||||
|
||||
sigar_proc_args_create(procargs);
|
||||
|
||||
args = CommandLineToArgvW(buf, &num);
|
||||
|
||||
Reference in new issue
Block a user