Commit b5886a71 authored by ZUHONG TAO's avatar ZUHONG TAO
Browse files

update path field limit macro

parent 0681f8cb
......@@ -175,12 +175,12 @@ resolve_file (GFile *file)
orig_path = g_file_get_path (file);
#ifdef G_OS_WIN32
real_path = _fullpath(NULL, orig_path, PATH_MAX);
real_path = _fullpath(NULL, orig_path, _MAX_PATH);
real_path = realpath (orig_path, NULL);
/* unlikely, but PATH_MAX exceeded */
/* unlikely, but _MAX_PATH exceeded */
if (real_path == NULL)
return g_object_ref (file);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment