From e295c4c17d1f6c6491ece0c2fad4299a56ac81d9 Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 1 Mar 2005 12:19:58 +0000 Subject: [PATCH] VC didn't like PATH_MAX. Use MAX_PATH instead. (This macro is mentioned in MSDN's SetCurrentDirectory() documentation, although I haven't found a statement of where it's supposed to be defined.) git-svn-id: svn://svn.tartarus.org/sgt/putty@5420 cda61777-01e9-0310-a592-d414129be87e --- windows/winutils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/windows/winutils.c b/windows/winutils.c index 450c030e..b1ee0113 100644 --- a/windows/winutils.c +++ b/windows/winutils.c @@ -5,7 +5,6 @@ #include #include #include -#include #include "winstuff.h" #include "misc.h" @@ -26,7 +25,7 @@ */ struct filereq_tag { - TCHAR cwd[PATH_MAX]; + TCHAR cwd[MAX_PATH]; }; /* @@ -37,7 +36,7 @@ struct filereq_tag { */ BOOL request_file(filereq *state, OPENFILENAME *of, int preserve, int save) { - TCHAR cwd[PATH_MAX]; /* process CWD */ + TCHAR cwd[MAX_PATH]; /* process CWD */ BOOL ret; /* Get process CWD */ -- 2.11.0