Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documented return value #9505

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions erts/emulator/sys/win32/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1482,9 +1482,11 @@ static int escape_and_quote(wchar_t *str, wchar_t *new, BOOL *quoted) {
* executable name.
*
* Results:
* The return value is FALSE if there was a problem creating the child process.
* Otherwise, the return value is 0 and *phPid is
* filled with the process id of the child process.
* The return value is FALSE if there was a problem creating the child process.
*
* When successful, the return value is nonzero, *phPid is filled with the
* process handle of the child process, and *pdwID is filled with its
* process ID.
*
* Side effects:
* A process is created.
Expand All @@ -1503,12 +1505,12 @@ create_child_process
HANDLE hStdout, /* The standard output handle for child. */
HANDLE hStderr, /* The standard error handle for child. */
LPHANDLE phPid, /* Pointer to variable to received Process handle. */
LPDWORD pdwID, /* Pointer to variable to received Process ID */
LPDWORD pdwID, /* Pointer to variable to received Process ID */
BOOL hide, /* Hide the window unconditionally. */
LPVOID env, /* Environment for the child */
wchar_t *wd, /* Working dir for the child */
wchar_t *wd, /* Working dir for the child */
unsigned st, /* Flags for spawn, tells us how to interpret origcmd */
wchar_t **argv, /* Argument vector if given. */
wchar_t **argv, /* Argument vector if given. */
int *errno_return /* Place to put an errno in case of failure */
)
{
Expand Down
Loading