From 6b9a3b0c7768ab20a9bcb1374ad65cb667eec9f8 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Sat, 25 Sep 2010 13:55:22 +0000 Subject: [PATCH] fullpath variable was missing for _WIN32 --- CHANGELOG.txt | 1 + misc/physfsx.c | 3 +++ 2 files changed, 4 insertions(+) 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];