From 03d6ef460764e6d8db8984cf0314cbebd389ddf5 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Tue, 13 Sep 2005 11:57:50 +0000 Subject: [PATCH] fix crash in 'make msvc' svn path=/trunk/; revision=17829 --- reactos/tools/rbuild/XML.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/tools/rbuild/XML.cpp b/reactos/tools/rbuild/XML.cpp index 32cf417818a..fc81796b884 100644 --- a/reactos/tools/rbuild/XML.cpp +++ b/reactos/tools/rbuild/XML.cpp @@ -230,6 +230,11 @@ Path::Split ( vector& out, } if ( include_last && strcmp ( prev, "." ) ) out.push_back ( prev ); + // special-case where path only has "." + // don't move this check up higher as it might miss + // some funny paths... + if ( !out.size() && !strcmp ( prev, "." ) ) + out.push_back ( "." ); } XMLFile::XMLFile()