From 3a4bb3b8dce8f70c2a14f7df0da251067b0811c1 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 7 Sep 2006 19:20:42 +0000 Subject: [PATCH] Yes we should do it as WINE. Fixes a buffer overflow in RtlDetermineDosPathNameType_U() svn path=/trunk/; revision=23967 --- reactos/lib/rtl/path.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/reactos/lib/rtl/path.c b/reactos/lib/rtl/path.c index 2b69c371264..4b23f14f29e 100644 --- a/reactos/lib/rtl/path.c +++ b/reactos/lib/rtl/path.c @@ -75,12 +75,7 @@ RtlDetermineDosPathNameType_U(PCWSTR Path) } else { - /* FIXME: the Wine version of this line reads: - * if (!Path[1] || Path[1] != L':') return RtlPathTypeRelative - * Should we do this too? - * -Gunnar - */ - if (Path[1] != L':') return RtlPathTypeRelative; /* xxx */ + if (!Path[1] || Path[1] != L':') return RtlPathTypeRelative; /* xxx */ if (IS_PATH_SEPARATOR(Path[2])) return RtlPathTypeDriveAbsolute; /* x:\xxx */ return RtlPathTypeDriveRelative; /* x:xxx */