[vlc-commits] winvlc: Move breakpad init completely in HAVE_BREAKPAD
Marvin Scholz
git at videolan.org
Thu Mar 15 19:28:59 CET 2018
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Mar 15 18:09:31 2018 +0100| [a7611f68e6da7e564adec3628749d3267a800927] | committer: Jean-Baptiste Kempf
winvlc: Move breakpad init completely in HAVE_BREAKPAD
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7611f68e6da7e564adec3628749d3267a800927
---
bin/winvlc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/winvlc.c b/bin/winvlc.c
index 9d081bf43f..8f22946fef 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -197,10 +197,10 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
argv[argc] = NULL;
LocalFree (wargv);
+#ifdef HAVE_BREAKPAD
void* eh = NULL;
if(crash_handling)
{
-#ifdef HAVE_BREAKPAD
static wchar_t path[MAX_PATH];
if( S_OK != SHGetFolderPathW( NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE,
NULL, SHGFP_TYPE_CURRENT, path ) )
@@ -208,8 +208,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
_snwprintf( path+wcslen( path ), MAX_PATH, L"%s", L"\\vlc\\crashdump" );
CheckCrashDump( &path[0] );
eh = InstallCrashHandler( &path[0] );
-#endif
}
+#endif
_setmode( _fileno( stdin ), _O_BINARY ); /* Needed for pipes */
More information about the vlc-commits
mailing list