make sigar_proc_args_get a wrapper
This commit is contained in:
1 parent
ad433cf375
commit
09c4138dbd
10 files changed
+25
-34
No files matched your search
@@ -122,8 +122,6 @@ int sigar_parse_proc_args(sigar_t *sigar, WCHAR *buf,
|
||||
buf = GetCommandLine();
|
||||
}
|
||||
|
||||
sigar_proc_args_create(procargs);
|
||||
|
||||
args = CommandLineToArgvW(buf, &num);
|
||||
|
||||
if (args == NULL) {
|
||||
|
||||
@@ -1272,8 +1272,8 @@ static int sigar_remote_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
return status;
|
||||
}
|
||||
|
||||
SIGAR_DECLARE(int) sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
sigar_proc_args_t *procargs)
|
||||
int sigar_os_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
sigar_proc_args_t *procargs)
|
||||
{
|
||||
if (pid == sigar->pid) {
|
||||
return sigar_parse_proc_args(sigar, NULL, procargs);
|
||||
|
||||
Reference in new issue
Block a user