Commit cd7e38e7 authored by Geoffroy Couprie's avatar Geoffroy Couprie

WinCE: build dump and timeshift modules

parent 4c11c094
......@@ -114,7 +114,12 @@ static int Open (vlc_object_t *obj)
return VLC_ENOMEM;
memset (p_sys, 0, sizeof (*p_sys));
# ifndef UNDER_CE
if ((p_sys->stream = tmpfile ()) == NULL)
# else
char buf[75];
if(GetTempFileName("\\Temp\\","vlc",0,buf) || ((p_sys->stream = fopen(buf,"wb+")) ==NULL))
#endif
{
msg_Err (access, "cannot create temporary file: %m");
free (p_sys);
......
......@@ -40,7 +40,7 @@
#include <unistd.h>
#ifdef WIN32
#if defined (WIN32) && !defined (UNDER_CE)
# include <direct.h> /* _wgetcwd */
#endif
......@@ -579,7 +579,7 @@ static char *GetTmpFilePath( access_t *p_access )
if( psz_dir == NULL )
{
#ifdef WIN32
#if defined (WIN32) && !defined (UNDER_CE)
DWORD ret = GetTempPathW (0, NULL);
wchar_t wdir[ret + 3]; // can at least old "C:" + nul
const wchar_t *pwdir = wdir;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment