Fixed bug 954 rbuild devcpp generates mixed slashes and backslashes in some pathnames in the file makefile.auto
Modified: trunk/reactos/tools/rbuild/backend/devcpp/devcpp.cpp

Modified: trunk/reactos/tools/rbuild/backend/devcpp/devcpp.cpp
--- trunk/reactos/tools/rbuild/backend/devcpp/devcpp.cpp	2005-11-07 19:31:15 UTC (rev 19040)
+++ trunk/reactos/tools/rbuild/backend/devcpp/devcpp.cpp	2005-11-07 20:32:17 UTC (rev 19041)
@@ -158,16 +158,18 @@
 		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 @@
 	
 	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;