]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
VC didn't like PATH_MAX. Use MAX_PATH instead. (This macro is mentioned in
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 1 Mar 2005 12:19:58 +0000 (12:19 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 1 Mar 2005 12:19:58 +0000 (12:19 +0000)
MSDN's SetCurrentDirectory() documentation, although I haven't found a
statement of where it's supposed to be defined.)

[originally from svn r5420]

windows/winutils.c

index 450c030ef3103bc0322ca0e73a65544940145753..b1ee011319326006a17947827a0d963c58c454bd 100644 (file)
@@ -5,7 +5,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
-#include <limits.h>
 
 #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 */