Skip to content
Snippets Groups Projects
Commit 3e3292a5 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

winvlc: don't keep the crash path forever in memory

It's copied internally by breakpad.
parent 520c9e92
No related branches found
No related tags found
1 merge request!4629breakpad: fix potential buffer overflow
......@@ -194,7 +194,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
void* eh = NULL;
if(crash_handling)
{
static wchar_t path[MAX_PATH];
wchar_t path[MAX_PATH];
if( S_OK != SHGetFolderPathW( NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE,
NULL, SHGFP_TYPE_CURRENT, path ) )
fprintf( stderr, "Can't open the vlc conf PATH\n" );
......
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