diff options
author | Jonathan Yong <10walls@gmail.com> | 2013-07-13 09:58:49 +0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-13 04:08:04 +0200 |
commit | dc4dcf34e5a1c8e05e2c6667a0fe7a5bdb0ace7e (patch) | |
tree | a23805e6c9d970fa26c8397403cdec41acf4023d /stream/stream_vcd.c | |
parent | e94fc5ee6675ec6873a6d91710b9c450d0423b3f (diff) | |
download | mpv-dc4dcf34e5a1c8e05e2c6667a0fe7a5bdb0ace7e.tar.bz2 mpv-dc4dcf34e5a1c8e05e2c6667a0fe7a5bdb0ace7e.tar.xz |
stream_vcd: use intptr_t cast for _open_osfhandle in accordance to MSDN
Diffstat (limited to 'stream/stream_vcd.c')
-rw-r--r-- | stream/stream_vcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_vcd.c b/stream/stream_vcd.c index 87b03f6e40..422dea02cd 100644 --- a/stream/stream_vcd.c +++ b/stream/stream_vcd.c @@ -166,7 +166,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { /* open() can't be used for devices so do it the complicated way */ hd = CreateFile(device, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, NULL); - f = _open_osfhandle((long)hd, _O_RDONLY); + f = _open_osfhandle((intptr_t)hd, _O_RDONLY); #else f=open(p->device,O_RDONLY); #endif |