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
8b0f5764
Commit
8b0f5764
authored
Aug 13, 2014
by
Hannes Domani
Committed by
Jean-Baptiste Kempf
Aug 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: rename crashdump to get only 1 bug report
Close #8168 Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
54e0a4a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
bin/winvlc.c
bin/winvlc.c
+10
-3
No files found.
bin/winvlc.c
View file @
8b0f5764
...
...
@@ -207,7 +207,14 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
/* Crashdumps handling */
static
void
check_crashdump
(
void
)
{
FILE
*
fd
=
_wfopen
(
crashdump_path
,
L"r, ccs=UTF-8"
);
wchar_t
mv_crashdump_path
[
MAX_PATH
];
wcscpy
(
mv_crashdump_path
,
crashdump_path
);
wcscat
(
mv_crashdump_path
,
L".mv"
);
if
(
_wrename
(
crashdump_path
,
mv_crashdump_path
))
return
;
FILE
*
fd
=
_wfopen
(
mv_crashdump_path
,
L"r, ccs=UTF-8"
);
if
(
!
fd
)
return
;
fclose
(
fd
);
...
...
@@ -235,7 +242,7 @@ static void check_crashdump(void)
now
.
wYear
,
now
.
wMonth
,
now
.
wDay
,
now
.
wHour
,
now
.
wMinute
,
now
.
wSecond
);
if
(
FtpPutFile
(
ftp
,
crashdump_path
,
remote_file
,
if
(
FtpPutFile
(
ftp
,
mv_
crashdump_path
,
remote_file
,
FTP_TRANSFER_TYPE_BINARY
,
0
)
)
MessageBox
(
NULL
,
L"Report sent correctly. Thanks a lot "
\
"for the help."
,
L"Report sent"
,
MB_OK
);
...
...
@@ -265,7 +272,7 @@ static void check_crashdump(void)
}
}
_wremove
(
crashdump_path
);
_wremove
(
mv_
crashdump_path
);
}
/*****************************************************************************
...
...
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