Skip to content
Snippets Groups Projects
Commit 28b191f3 authored by Marvin Scholz's avatar Marvin Scholz Committed by Steve Lhomme
Browse files

winvlc: Move breakpad init completely in HAVE_BREAKPAD


Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit a7611f68)
Signed-off-by: default avatarSteve Lhomme <robux4@ycbcr.xyz>
parent fda14fc7
No related branches found
No related tags found
1 merge request!4652[3.0] breakpad fixes
......@@ -209,10 +209,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 ) )
......@@ -220,8 +220,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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment