summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Yong <10walls@gmail.com>2013-07-13 09:58:49 +0800
committerwm4 <wm4@nowhere>2013-07-13 04:08:04 +0200
commitdc4dcf34e5a1c8e05e2c6667a0fe7a5bdb0ace7e (patch)
treea23805e6c9d970fa26c8397403cdec41acf4023d
parente94fc5ee6675ec6873a6d91710b9c450d0423b3f (diff)
downloadmpv-dc4dcf34e5a1c8e05e2c6667a0fe7a5bdb0ace7e.tar.bz2
mpv-dc4dcf34e5a1c8e05e2c6667a0fe7a5bdb0ace7e.tar.xz
stream_vcd: use intptr_t cast for _open_osfhandle in accordance to MSDN
-rw-r--r--stream/stream_vcd.c2
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