Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2fa9a4ae
Commit
2fa9a4ae
authored
Jan 15, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WinVLC: use _snwprintf that is conforming to the standard
parent
4a1beda8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bin/winvlc.c
bin/winvlc.c
+2
-2
No files found.
bin/winvlc.c
View file @
2fa9a4ae
...
@@ -132,7 +132,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
...
@@ -132,7 +132,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
if
(
S_OK
!=
SHGetFolderPathW
(
NULL
,
CSIDL_APPDATA
|
CSIDL_FLAG_CREATE
,
if
(
S_OK
!=
SHGetFolderPathW
(
NULL
,
CSIDL_APPDATA
|
CSIDL_FLAG_CREATE
,
NULL
,
SHGFP_TYPE_CURRENT
,
path
)
)
NULL
,
SHGFP_TYPE_CURRENT
,
path
)
)
fprintf
(
stderr
,
"Can't open the vlc conf PATH
\n
"
);
fprintf
(
stderr
,
"Can't open the vlc conf PATH
\n
"
);
swprintf
(
path
+
wcslen
(
path
),
L"%s"
,
L"
\\
vlc
\\
crashdump"
);
_snwprintf
(
path
+
wcslen
(
path
),
MAX_PATH
,
L"%s"
,
L"
\\
vlc
\\
crashdump"
);
crashdump_path
=
&
path
[
0
];
crashdump_path
=
&
path
[
0
];
check_crashdump
();
check_crashdump
();
...
@@ -188,7 +188,7 @@ static void check_crashdump(void)
...
@@ -188,7 +188,7 @@ static void check_crashdump(void)
SYSTEMTIME
now
;
SYSTEMTIME
now
;
GetSystemTime
(
&
now
);
GetSystemTime
(
&
now
);
wchar_t
remote_file
[
MAX_PATH
];
wchar_t
remote_file
[
MAX_PATH
];
swprintf
(
remote_file
,
_snwprintf
(
remote_file
,
MAX_PATH
,
L"/crashes-win32/%04d%02d%02d%02d%02d%02d"
,
L"/crashes-win32/%04d%02d%02d%02d%02d%02d"
,
now
.
wYear
,
now
.
wMonth
,
now
.
wDay
,
now
.
wHour
,
now
.
wYear
,
now
.
wMonth
,
now
.
wDay
,
now
.
wHour
,
now
.
wMinute
,
now
.
wSecond
);
now
.
wMinute
,
now
.
wSecond
);
...
...
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