From ab0a6e52ca694d985f7d1a587aec8be0cdcc1705 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 25 Jan 2024 02:06:22 +0000 Subject: __ntapi_tt_spawn_foreign_process(): remove redundant write (init'ed buffer). --- src/process/ntapi_tt_spawn_foreign_process.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/process') 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); -- cgit v1.2.3