gspawn, win32: fix redirecting only stderr
Problem was just a typo - wrong variable was checked before enabling stderr redirection. This fixes error-only redirection spawn-test added in previous commit. Behavior while redirecting only stdout should be unaffected, since old code tried to redirect stderr to -1 in such case, which silently failed I think.
Showing with 1 addition and 1 deletion