Cygwin: pipes: nt_create: set read handle to NULL in error case
Fix accidentally setting read handle to INVALID_HANDLE_VALUE in a single error case. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
ea9c0bbedc
commit
82643bd18e
|
@ -811,7 +811,7 @@ nt_create (LPSECURITY_ATTRIBUTES sa_ptr, HANDLE &r, HANDLE &w,
|
|||
__seterrno_from_nt_status (status);
|
||||
err = GetLastError ();
|
||||
debug_printf ("failed, %E");
|
||||
r = INVALID_HANDLE_VALUE;
|
||||
r = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue