mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
- Fix 38352, XMLLoadFile seems to need a separate instance of Path, so revert that optimisation and leave it only to NormalizeFilename.
svn path=/trunk/; revision=38353
This commit is contained in:
parent
03a011db89
commit
fd4de76baf
2 changed files with 7 additions and 5 deletions
|
@ -24,6 +24,8 @@
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
||||||
|
static const Path defaultPath;
|
||||||
|
|
||||||
string
|
string
|
||||||
Right ( const string& s, size_t n )
|
Right ( const string& s, size_t n )
|
||||||
{
|
{
|
||||||
|
@ -161,8 +163,9 @@ NormalizeFilename ( const string& filename )
|
||||||
{
|
{
|
||||||
if ( filename == "" )
|
if ( filename == "" )
|
||||||
return "";
|
return "";
|
||||||
string normalizedPath = defaultPath.Fixup ( filename, true );
|
Path path;
|
||||||
string relativeNormalizedPath = defaultPath.RelativeFromWorkingDirectory ( normalizedPath );
|
string normalizedPath = path.Fixup ( filename, true );
|
||||||
|
string relativeNormalizedPath = path.RelativeFromWorkingDirectory ( normalizedPath );
|
||||||
return FixSeparator ( relativeNormalizedPath );
|
return FixSeparator ( relativeNormalizedPath );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
||||||
const Path defaultPath;
|
|
||||||
|
|
||||||
/* static */ string
|
/* static */ string
|
||||||
Environment::GetVariable ( const string& name )
|
Environment::GetVariable ( const string& name )
|
||||||
{
|
{
|
||||||
|
@ -261,7 +259,8 @@ Project::ExecuteInvocations ()
|
||||||
void
|
void
|
||||||
Project::ReadXml ()
|
Project::ReadXml ()
|
||||||
{
|
{
|
||||||
head = XMLLoadFile ( xmlfile, defaultPath, xmlbuildfiles );
|
Path path;
|
||||||
|
head = XMLLoadFile ( xmlfile, path, xmlbuildfiles );
|
||||||
node = NULL;
|
node = NULL;
|
||||||
for ( size_t i = 0; i < head->subElements.size (); i++ )
|
for ( size_t i = 0; i < head->subElements.size (); i++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue