diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2015-04-11 14:35:50 +1000 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2015-04-11 14:35:50 +1000 |
commit | 96d0a3f56c4427fdc5c52a4ee7dae540c6f2537e (patch) | |
tree | 4dd437b577e84037cc09ed4caa794d7194ae9832 /video/filter | |
parent | 1e3aad5f876b8e01dd3100e1bc6ecd6572f2f9bf (diff) | |
download | mpv-96d0a3f56c4427fdc5c52a4ee7dae540c6f2537e.tar.bz2 mpv-96d0a3f56c4427fdc5c52a4ee7dae540c6f2537e.tar.xz |
main-fn-win: fix handle validity check for XP
Apparently the standard handles can be set to bogus values on XP. Use
GetFileType to check whether they refer to an actual file/pipe/etc. The
logic used by is_valid_handle() is now pretty similar to what the CRT
uses to check for valid stdio handles.
Diffstat (limited to 'video/filter')
0 files changed, 0 insertions, 0 deletions