From: Paul Gofman <pgofman(a)codeweavers.com> --- dlls/kernelbase/path.c | 1 - dlls/kernelbase/tests/path.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/kernelbase/path.c b/dlls/kernelbase/path.c index 10140827ee5..d05e095cc55 100644 --- a/dlls/kernelbase/path.c +++ b/dlls/kernelbase/path.c @@ -728,7 +728,6 @@ BOOL WINAPI PathCchIsRoot(const WCHAR *path) /* Has first segment with an ending backslash and has remaining characters*/ else { - next++; /* Second segment must have no backslash and no remaining characters */ return !get_next_segment(next, &next) && !*next; } diff --git a/dlls/kernelbase/tests/path.c b/dlls/kernelbase/tests/path.c index 4257abb29f0..d04bf35ad32 100644 --- a/dlls/kernelbase/tests/path.c +++ b/dlls/kernelbase/tests/path.c @@ -1481,6 +1481,8 @@ static const struct isroot_test isroot_tests[] = {"\\\\?\\Volume{e51a1864-6f2d-4019-b73d-f4e60e600c26}\\", TRUE}, {"\\\\?\\Volume{e51a1864-6f2d-4019-b73d-f4e60e600c26}\\a", FALSE}, {"..\\a", FALSE}, + {"\\\\\\\\", FALSE}, + {"\\\\a\\\\b", FALSE}, /* Wrong MSDN examples */ {"\\a", FALSE}, -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6318