examples/winexe: fix fetching return code of the remote command
authorYury Lunev <yury.lunev@gmail.com>
Wed, 27 Jul 2022 18:22:49 +0000 (21:22 +0300)
committerJeremy Allison <jra@samba.org>
Thu, 28 Jul 2022 18:01:16 +0000 (18:01 +0000)
commitab3d2379415fc1b90b7ad1b6969ddbb88bbfc86b
treebad7a6b7f30aa11811a5c671ad7cdd5cf2cb79bb
parent332338173ec9df9628e29eef2eccff2226c01e9d
examples/winexe: fix fetching return code of the remote command

ctrl_inbuf field is used to parse remote-side information. A typo was
there that tried to parse return code as "version 0x%x" whereas the
correct way to do it (tested on Windows 10) is to scan for "return_code
%x".

Signed-off-by: Yury Lunev <yury.lunev@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jul 28 18:01:16 UTC 2022 on sn-devel-184
examples/winexe/winexe.c