summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-25 02:06:22 +0000
committermidipix <writeonce@midipix.org>2024-01-25 02:26:16 +0000
commitab0a6e52ca694d985f7d1a587aec8be0cdcc1705 (patch)
tree325a028bfe85f9135a8e6f14a08e793ff84e60f8
parent7253fbfbeb551d1e3ee0b73415b4b4668395ba69 (diff)
downloadntapi-ab0a6e52ca694d985f7d1a587aec8be0cdcc1705.tar.bz2
ntapi-ab0a6e52ca694d985f7d1a587aec8be0cdcc1705.tar.xz
__ntapi_tt_spawn_foreign_process(): remove redundant write (init'ed buffer).
-rw-r--r--src/process/ntapi_tt_spawn_foreign_process.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/process/ntapi_tt_spawn_foreign_process.c b/src/process/ntapi_tt_spawn_foreign_process.c
index 03bf83f..06f9039 100644
--- a/src/process/ntapi_tt_spawn_foreign_process.c
+++ b/src/process/ntapi_tt_spawn_foreign_process.c
@@ -273,8 +273,6 @@ int32_t __stdcall __ntapi_tt_spawn_foreign_process(nt_spawn_process_params * spa
&rtblock,0,0,
NT_STATUS_ILLEGAL_CHARACTER);
- cmdline[uparams.bytes_written / sizeof(wchar16_t)] = 0;
-
/* nt_cmd_line */
nt_cmd_line.strlen = uparams.bytes_written;
nt_cmd_line.maxlen = uparams.bytes_written + sizeof(wchar16_t);