mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 07:38:06 -05:00
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.) [originally from svn r5420]
This commit is contained in:
parent
a2b583f137
commit
e3511e1387
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user