From b8d7f36ba37c153aa1516392e08afdbe6386e46b Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 29 Jan 2022 08:05:59 +0100 Subject: [PATCH] Fix SC_EXIT_CODE_NONE value The exit code on windows is stored in a DWORD, an unsigned long: Use the max value of this type for SC_EXIT_CODE_NONE. --- app/src/util/process.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/process.h b/app/src/util/process.h index 17c09bc5..90920620 100644 --- a/app/src/util/process.h +++ b/app/src/util/process.h @@ -15,7 +15,7 @@ // # define SC_PRIsizet "Iu" # define SC_PROCESS_NONE NULL -# define SC_EXIT_CODE_NONE -1u // max value as unsigned +# define SC_EXIT_CODE_NONE -1UL // max value as unsigned long typedef HANDLE sc_pid; typedef DWORD sc_exit_code; typedef HANDLE sc_pipe;