win32: spawn: avoid Wbad-function-cast
Instead of casting the return value of _get_osfhandle() immediately to HANDLE, check for the error cases first, and only cast to HANDLE when used in DuplicateHandle().
parent
01162c3f
No related branches found
No related tags found
Please register or sign in to comment