diff options
author | midipix <writeonce@midipix.org> | 2024-01-23 06:03:56 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-01-23 06:03:56 +0000 |
commit | de53a2207b390a790b0583abeb7dd5a87101b1b5 (patch) | |
tree | 871ff172ff1491526ff0906b891fe841b650ab75 /src/process | |
parent | 1adf94a1903d4e2df054d8e1c4c841c15033bbc2 (diff) | |
download | ntapi-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.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); |