Commit a7611f68 authored by Marvin Scholz's avatar Marvin Scholz Committed by Jean-Baptiste Kempf

winvlc: Move breakpad init completely in HAVE_BREAKPAD

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 67ebc093
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment