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

It's copied internally by breakpad.
This commit is contained in:
Steve Lhomme 2023-12-04 08:24:04 +01:00
parent 520c9e9291
commit 3e3292a58d
1 changed files with 1 additions and 1 deletions

View File

@ -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" );