diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4f41c6af4..ace11159c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ D1X-Rebirth Changelog 20100925 -------- include/cfile.h, include/physfsx.h, main/bmread.c, main/piggy.c, misc/physfsx.c: Add 'Data' subdir as a searchpath, simplifying a lot of file opening/checking/closing code +misc/physfsx.c: fullpath variable was missing for _WIN32 20100919 -------- diff --git a/misc/physfsx.c b/misc/physfsx.c index 6af610833..e8b7a92d7 100644 --- a/misc/physfsx.c +++ b/misc/physfsx.c @@ -23,6 +23,9 @@ // The user directory is searched first. void PHYSFSX_init(int argc, char *argv[]) { +#if defined (_WIN32) + char fullPath[PATH_MAX + 5]; +#endif #if defined(__unix__) char *path = NULL; char fullPath[PATH_MAX + 5];