From 608e16761e870c70bea11bc3a0f94c0dc520d4a9 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Mon, 18 May 2026 12:22:22 +0300 Subject: [PATCH] tst: passthrough, passthrough-cpp: fix #662 --- tst/passthrough-cpp/passthrough-cpp.cpp | 2 +- tst/passthrough/passthrough.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tst/passthrough-cpp/passthrough-cpp.cpp b/tst/passthrough-cpp/passthrough-cpp.cpp index a260e9d7..e6f6bca6 100644 --- a/tst/passthrough-cpp/passthrough-cpp.cpp +++ b/tst/passthrough-cpp/passthrough-cpp.cpp @@ -191,7 +191,7 @@ Ptfs::~Ptfs() NTSTATUS Ptfs::SetPath(PWSTR Path) { - WCHAR FullPath[MAX_PATH]; + WCHAR FullPath[FULLPATH_SIZE]; ULONG Length; HANDLE Handle; FILETIME CreationTime; diff --git a/tst/passthrough/passthrough.c b/tst/passthrough/passthrough.c index dc9e4df0..2ffe2002 100644 --- a/tst/passthrough/passthrough.c +++ b/tst/passthrough/passthrough.c @@ -626,7 +626,7 @@ static VOID PtfsDelete(PTFS *Ptfs); static NTSTATUS PtfsCreate(PWSTR Path, PWSTR VolumePrefix, PWSTR MountPoint, UINT32 DebugFlags, PTFS **PPtfs) { - WCHAR FullPath[MAX_PATH]; + WCHAR FullPath[FULLPATH_SIZE]; ULONG Length; HANDLE Handle; FILETIME CreationTime;