summaryrefslogtreecommitdiffhomepage
path: root/src/process
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-23 06:03:56 +0000
committermidipix <writeonce@midipix.org>2024-01-23 06:03:56 +0000
commitde53a2207b390a790b0583abeb7dd5a87101b1b5 (patch)
tree871ff172ff1491526ff0906b891fe841b650ab75 /src/process
parent1adf94a1903d4e2df054d8e1c4c841c15033bbc2 (diff)
downloadntapi-de53a2207b390a790b0583abeb7dd5a87101b1b5.tar.bz2
ntapi-de53a2207b390a790b0583abeb7dd5a87101b1b5.tar.xz
__ntapi_tt_spawn_native_process(): fix typo in assignment-based comparison.
Diffstat (limited to 'src/process')
-rw-r--r--src/process/ntapi_tt_spawn_native_process.c2
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);