[vlc-commits] Winstore app: don't use GetModuleFileName

Rafaël Carré git at videolan.org
Tue May 21 15:06:45 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue May 21 15:05:55 2013 +0200| [58774c323f840bcc0efed874fa9f9325c1ea5b54] | committer: Rafaël Carré

Winstore app: don't use GetModuleFileName

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

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

diff --git a/src/win32/dirs.c b/src/win32/dirs.c
index 90b48ba..c27e6fd 100644
--- a/src/win32/dirs.c
+++ b/src/win32/dirs.c
@@ -42,6 +42,9 @@
 
 char *config_GetLibDir (void)
 {
+#if VLC_WINSTORE_APP
+    return NULL;
+#else
     /* Get our full path */
     MEMORY_BASIC_INFORMATION mbi;
     if (!VirtualQuery (config_GetLibDir, &mbi, sizeof(mbi)))
@@ -59,6 +62,7 @@ char *config_GetLibDir (void)
     return FromWide (wpath);
 error:
     abort ();
+#endif
 }
 
 char *config_GetDataDir (void)



More information about the vlc-commits mailing list