aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig/mconf.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-11-07 20:38:37 +0000
committerRon Yorston <rmy@pobox.com>2022-11-07 20:48:07 +0000
commit14e51376ea1d4c3888ea820b17f774a474e42504 (patch)
treeda3a191498a78654da0dc9a1697ca8a4b9518c11 /scripts/kconfig/mconf.c
parent863342aef089f064afb65d7c344a0d254c30d155 (diff)
downloadbusybox-w32-14e51376ea1d4c3888ea820b17f774a474e42504.tar.gz
busybox-w32-14e51376ea1d4c3888ea820b17f774a474e42504.tar.bz2
busybox-w32-14e51376ea1d4c3888ea820b17f774a474e42504.zip
win32: fix ESC/CR handling in 'make menuconfig'
The WIN32 code in the 'mconf' build program should truncate the exit status from dialogs as if it were passed through WEXITSTATUS. The text dialog, for example, returns a status of -1 when ESC or CR is pressed. 'mconf' expects to see this as 255.
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r--scripts/kconfig/mconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 1112daa56..62baa82b0 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -694,7 +694,7 @@ static int exec_conf(void)
694 WaitForSingleObject(piProcInfo.hProcess, INFINITE); 694 WaitForSingleObject(piProcInfo.hProcess, INFINITE);
695 GetExitCodeProcess(piProcInfo.hProcess, &stat); 695 GetExitCodeProcess(piProcInfo.hProcess, &stat);
696 696
697 return (int)stat; 697 return (int)(stat &0xff);
698#else 698#else
699 int pipefd[2], stat, size; 699 int pipefd[2], stat, size;
700 sigset_t sset, osset; 700 sigset_t sset, osset;