Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d93246d2
Commit
d93246d2
authored
May 09, 2009
by
Pierre Ynard
Committed by
Geoffroy Couprie
May 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wince: replace getpid by GetCurrentProcessId
Signed-off-by:
Geoffroy Couprie
<
geo.couprie@gmail.com
>
parent
7935d5a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
src/config/file.c
src/config/file.c
+7
-1
src/modules/cache.c
src/modules/cache.c
+6
-1
No files found.
src/config/file.c
View file @
d93246d2
...
...
@@ -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
);
...
...
src/modules/cache.c
View file @
d93246d2
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment