mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:25:55 +00:00
Fixed bug 954 rbuild devcpp generates mixed slashes and backslashes in some pathnames in the file makefile.auto
svn path=/trunk/; revision=19041
This commit is contained in:
parent
03ff526652
commit
9508072c73
1 changed files with 6 additions and 4 deletions
|
@ -158,16 +158,18 @@ void DevCppBackend::ProcessFile(string &filepath)
|
|||
return;
|
||||
|
||||
// Change the \ to /
|
||||
|
||||
for(size_t i = 0; i < filepath.length(); i++)
|
||||
{
|
||||
if(filepath[i] == '\\')
|
||||
filepath[i] = '/';
|
||||
if(filepath[i] == '/')
|
||||
filepath[i] = '\\';
|
||||
}
|
||||
|
||||
|
||||
// Remove the filename from the path
|
||||
string folder = "";
|
||||
|
||||
size_t pos = filepath.rfind(string("/"), filepath.length() - 1);
|
||||
size_t pos = filepath.rfind(string("\\"), filepath.length() - 1);
|
||||
|
||||
if(pos != string::npos)
|
||||
{
|
||||
|
@ -206,7 +208,7 @@ void DevCppBackend::AddFolders(string &folder)
|
|||
|
||||
m_folders.push_back(folder);
|
||||
|
||||
size_t pos = folder.rfind(string("/"), folder.length() - 1);
|
||||
size_t pos = folder.rfind(string("\\"), folder.length() - 1);
|
||||
|
||||
if(pos == string::npos)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue