From de53a2207b390a790b0583abeb7dd5a87101b1b5 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 23 Jan 2024 06:03:56 +0000 Subject: __ntapi_tt_spawn_native_process(): fix typo in assignment-based comparison. --- src/process/ntapi_tt_spawn_native_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/process/ntapi_tt_spawn_native_process.c b/src/process/ntapi_tt_spawn_native_process.c index 3417e0d..086e4e2 100644 --- a/src/process/ntapi_tt_spawn_native_process.c +++ b/src/process/ntapi_tt_spawn_native_process.c @@ -204,7 +204,7 @@ int32_t __stdcall __ntapi_tt_spawn_native_process(nt_spawn_process_params * spar pwarg = rdata->wenvp + rdata->envc + 1; wch = (wchar16_t *)pwarg; - if ((written == (uintptr_t)wch - (uintptr_t)rdata) > rtblock.size) + if ((written = (uintptr_t)wch - (uintptr_t)rdata) > rtblock.size) return __tt_spawn_return( &rtblock,0,0,NT_STATUS_BUFFER_TOO_SMALL); -- cgit v1.2.3