summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_registry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_registry.cc')
-rw-r--r--winsup/cygwin/fhandler_registry.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc
index e9bc37edf..f80096fa6 100644
--- a/winsup/cygwin/fhandler_registry.cc
+++ b/winsup/cygwin/fhandler_registry.cc
@@ -97,7 +97,7 @@ int
fhandler_registry::exists ()
{
int file_type = 0, index = 0, pathlen;
- DWORD buf_size = MAX_PATH;
+ DWORD buf_size = CYG_MAX_PATH;
LONG error;
char buf[buf_size];
const char *file;
@@ -152,7 +152,7 @@ fhandler_registry::exists ()
file_type = 1;
goto out;
}
- buf_size = MAX_PATH;
+ buf_size = CYG_MAX_PATH;
}
if (error != ERROR_NO_MORE_ITEMS)
{
@@ -160,7 +160,7 @@ fhandler_registry::exists ()
goto out;
}
index = 0;
- buf_size = MAX_PATH;
+ buf_size = CYG_MAX_PATH;
while (ERROR_SUCCESS ==
(error = RegEnumValue (hKey, index++, buf, &buf_size, NULL, NULL,
NULL, NULL))
@@ -172,7 +172,7 @@ fhandler_registry::exists ()
file_type = -1;
goto out;
}
- buf_size = MAX_PATH;
+ buf_size = CYG_MAX_PATH;
}
if (error != ERROR_NO_MORE_ITEMS)
{
@@ -276,7 +276,7 @@ fhandler_registry::fstat (struct __stat64 *buf)
struct dirent *
fhandler_registry::readdir (DIR * dir)
{
- DWORD buf_size = MAX_PATH;
+ DWORD buf_size = CYG_MAX_PATH;
char buf[buf_size];
HANDLE handle;
struct dirent *res = NULL;
@@ -324,7 +324,7 @@ retry:
{
/* If we're finished with sub-keys, start on values under this key. */
dir->__d_position |= REG_ENUM_VALUES_MASK;
- buf_size = MAX_PATH;
+ buf_size = CYG_MAX_PATH;
goto retry;
}
if (error != ERROR_SUCCESS && error != ERROR_MORE_DATA)
@@ -592,7 +592,7 @@ fhandler_registry::fill_filebuf ()
}
return true;
value_not_found:
- DWORD buf_size = MAX_PATH;
+ DWORD buf_size = CYG_MAX_PATH;
char buf[buf_size];
int index = 0;
while (ERROR_SUCCESS ==
@@ -604,7 +604,7 @@ value_not_found:
set_errno (EISDIR);
return false;
}
- buf_size = MAX_PATH;
+ buf_size = CYG_MAX_PATH;
}
if (error != ERROR_NO_MORE_ITEMS)
{
@@ -622,7 +622,7 @@ open_key (const char *name, REGSAM access, bool isValue)
HKEY hKey = (HKEY) INVALID_HANDLE_VALUE;
HKEY hParentKey = (HKEY) INVALID_HANDLE_VALUE;
bool parentOpened = false;
- char component[MAX_PATH];
+ char component[CYG_MAX_PATH];
while (*name)
{