projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug 954 rbuild devcpp generates mixed slashes and backslashes in some pathnames...
[reactos.git]
/
reactos
/
tools
/
rbuild
/
backend
/
devcpp
/
devcpp.cpp
diff --git
a/reactos/tools/rbuild/backend/devcpp/devcpp.cpp
b/reactos/tools/rbuild/backend/devcpp/devcpp.cpp
index
7ee416f
..
a2328cb
100644
(file)
--- a/
reactos/tools/rbuild/backend/devcpp/devcpp.cpp
+++ b/
reactos/tools/rbuild/backend/devcpp/devcpp.cpp
@@
-158,16
+158,18
@@
void DevCppBackend::ProcessFile(string &filepath)
return;
// Change the \ to /
return;
// Change the \ to /
+
for(size_t i = 0; i < filepath.length(); i++)
{
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 = "";
// 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)
{
if(pos != string::npos)
{
@@
-206,7
+208,7
@@
void DevCppBackend::AddFolders(string &folder)
m_folders.push_back(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;
if(pos == string::npos)
return;