]> git.sesse.net Git - vlc/blobdiff - src/misc/win32_specific.c
Move psz_vlcpath out of p_root
[vlc] / src / misc / win32_specific.c
index 1f027cc51767bbfdd1ff71c9a71b79eed73856af..b89eabfefde02700b71548e8b0c4153a920f4518 100644 (file)
@@ -76,7 +76,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
     }
 #endif
 
-    vlc_global()->psz_vlcpath = strdup( psz_path );
+    psz_vlcpath = strdup( psz_path );
 
     /* Set the default file-translation mode */
 #if !defined( UNDER_CE )
@@ -371,8 +371,8 @@ void system_End( libvlc_int_t *p_this )
     HWND ipcwindow;
     if( p_this && vlc_global() )
     {
-        free( vlc_global()->psz_vlcpath );
-        vlc_global()->psz_vlcpath = NULL;
+        free( psz_vlcpath );
+        psz_vlcpath = NULL;
     }
 
     if( ipcwindow = FindWindow( 0, L"VLC ipc "VERSION ) )