diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/process/ntapi_tt_spawn_native_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |