[vlc-commits] Win32: portable build means nothing in WinRT mode

Jean-Baptiste Kempf git at videolan.org
Tue Apr 19 15:34:45 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 19 15:34:21 2016 +0200| [306bb436b0af8042d1403d91ee81cd8cd8505539] | committer: Jean-Baptiste Kempf

Win32: portable build means nothing in WinRT mode

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=306bb436b0af8042d1403d91ee81cd8cd8505539
---

 src/win32/dirs.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/win32/dirs.c b/src/win32/dirs.c
index 7a62bfc..e5dba3c 100644
--- a/src/win32/dirs.c
+++ b/src/win32/dirs.c
@@ -87,6 +87,7 @@ static char *config_GetShellDir (int csidl)
 
 static char *config_GetAppDir (void)
 {
+#if !VLC_WINSTORE_APP
     /* if portable directory exists, use it */
     TCHAR path[MAX_PATH];
     if (GetModuleFileName (NULL, path, MAX_PATH))
@@ -101,6 +102,7 @@ static char *config_GetAppDir (void)
                 return FromT (path);
         }
     }
+#endif
 
     char *psz_dir;
     char *psz_parent = config_GetShellDir (CSIDL_APPDATA);



More information about the vlc-commits mailing list