Commit 91116db9 authored by Pierre Ynard's avatar Pierre Ynard Committed by Jean-Baptiste Kempf

wince: replace getpid by GetCurrentProcessId

Signed-off-by: default avatarGeoffroy Couprie <geo.couprie@gmail.com>
(cherry picked from commit d93246d2)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4b7950c7
......@@ -512,7 +512,13 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
goto error;
}
if (asprintf (&temporary, "%s.%u", permanent, getpid ()) == -1)
if (asprintf (&temporary, "%s.%u", permanent,
#ifdef UNDER_CE
GetCurrentProcessId ()
#else
getpid ()
#endif
) == -1)
{
temporary = NULL;
module_list_free (list);
......
......@@ -508,7 +508,12 @@ void CacheSave( vlc_object_t *p_this, module_bank_t *p_bank )
char psz_tmpname[sizeof (psz_filename) + 12];
snprintf (psz_tmpname, sizeof (psz_tmpname), "%s.%"PRIu32, psz_filename,
(uint32_t)getpid ());
#ifdef UNDER_CE
(uint32_t)GetCurrentProcessId ()
#else
(uint32_t)getpid ()
#endif
);
file = utf8_fopen( psz_tmpname, "wb" );
if (file == NULL)
goto error;
......
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