[libbluray-devel] Win32 build fixes
Ian Curtis
git at videolan.org
Wed Mar 13 13:20:11 CET 2013
libbluray | branch: master | Ian Curtis <i.curtis at gmail.com> | Wed Mar 13 14:19:03 2013 +0200| [d691e1b14ae6edbfe5c0afd3aa4fd46bd0202fed] | committer: hpi1
Win32 build fixes
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=d691e1b14ae6edbfe5c0afd3aa4fd46bd0202fed
---
src/file/dirs_win32.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/file/dirs_win32.c b/src/file/dirs_win32.c
index b0e9142..cc87a29 100644
--- a/src/file/dirs_win32.c
+++ b/src/file/dirs_win32.c
@@ -29,14 +29,14 @@
#include <string.h>
#include <shlobj.h>
-#include <w32api.h>
+#include <windows.h>
#include <limits.h>
#include <direct.h>
const char *file_get_data_home(void)
{
- static char appdir[PATH_MAX] = "";
+ static char appdir[MAX_PATH] = "";
wchar_t wdir[MAX_PATH];
if (*appdir)
@@ -45,7 +45,7 @@ const char *file_get_data_home(void)
/* Get the "Application Data" folder for the user */
if (S_OK == SHGetFolderPathW(NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE,
NULL, SHGFP_TYPE_CURRENT, wdir)) {
- WideCharToMultiByte (CP_UTF8, 0, wdir, -1, appdir, PATH_MAX, NULL, NULL);
+ WideCharToMultiByte (CP_UTF8, 0, wdir, -1, appdir, MAX_PATH, NULL, NULL);
return appdir;
}
More information about the libbluray-devel
mailing list