mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
ntdll: Replace a MAX_PATH with PATH_MAX.
Related code uses PATH_MAX; this seems to have been an accident. Spotted by Aida Jonikienė.
This commit is contained in:
parent
aa9b8391c0
commit
dd067c0b0d
@ -1,4 +1,4 @@
|
||||
From 88bdec9c242b2b7eaafa7d47a09679c3681ae4af Mon Sep 17 00:00:00 2001
|
||||
From 236c1c30f4cf4550a6fc50d3a5be050ec79bac53 Mon Sep 17 00:00:00 2001
|
||||
From: "Erich E. Hoover" <erich.e.hoover@wine-staging.com>
|
||||
Date: Sat, 6 Feb 2021 16:16:17 -0700
|
||||
Subject: [PATCH] ntdll: Add an intermediary prefix symlink in reparse point
|
||||
@ -10,7 +10,7 @@ Signed-off-by: Erich E. Hoover <erich.e.hoover@gmail.com>
|
||||
1 file changed, 39 insertions(+)
|
||||
|
||||
diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
|
||||
index 5d7095086d9..870a727b48f 100644
|
||||
index 5d7095086d9..6422bdc5ec1 100644
|
||||
--- a/dlls/ntdll/unix/file.c
|
||||
+++ b/dlls/ntdll/unix/file.c
|
||||
@@ -3577,6 +3577,18 @@ static NTSTATUS get_reparse_target( UNICODE_STRING *nt_target, REPARSE_DATA_BUFF
|
||||
@ -47,7 +47,7 @@ index 5d7095086d9..870a727b48f 100644
|
||||
}
|
||||
+ else if (find_prefix_end( unix_target, &relative_offset ))
|
||||
+ {
|
||||
+ char prefix_link[MAX_PATH];
|
||||
+ char prefix_link[PATH_MAX];
|
||||
+
|
||||
+ append_prefix = TRUE;
|
||||
+ is_relative = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user