[ros-bugs] [Bug 802] rbuild devcpp drops characters in directories

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Fri Oct 28 11:58:56 CEST 2005


http://www.reactos.org/bugzilla/show_bug.cgi?id=802


sb009428 at tiscali.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From sb009428 at tiscali.nl  2005-10-28 11:58 CET -------
The following patch solves the problem with dropping characters from the paths 
when using rbuild devcpp on WinXP (and others?).

Index: tools/rbuild/backend/devcpp/devcpp.cpp
===================================================================
--- tools/rbuild/backend/devcpp/devcpp.cpp	(revision 18825)
+++ tools/rbuild/backend/devcpp/devcpp.cpp	(working copy)
@@ -152,7 +152,7 @@
 void DevCppBackend::ProcessFile(string &filepath)
 {
 	// Remove the .\ at the start of the filenames
-	filepath.erase(0, 2);
+    if ((filepath[0] == '.') && (filepath[1] == '\\')) filepath.erase(0, 2);
 
 	if(!FileExists(filepath))
 		return;


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.


More information about the Ros-bugs mailing list