Skip to content

filesrc: Don't abort on _get_osfhandle()

_get_osfhandle() expects valid fd and CRT will abort program if given paramerter is invalid. The fd can be invalidated in various way, file was deleted by other process after we open a file. To avoid it, our own exception handler must be installed so that _get_osfhandle() can return INVALID_HANDLE_VALUE if fd is invalid.

Merge request reports