fix pch bug (patch by Brezenbak)
Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
_____
Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
--- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
2006-01-08 01:24:27 UTC (rev 20693)
+++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
2006-01-08 02:39:11 UTC (rev 20694)
@@ -321,6 +321,9 @@
string pch_path = Path::RelativeFromDirectory (
module.pch->file.name,
module.GetBasePath() );
+ string::size_type pos = pch_path.find_last_of
("/");
+ if ( pos != string::npos )
+ pch_path.erase(0, pos+1);
fprintf ( OUT,
"\t\t\t\tPrecompiledHeaderThrough=\"%s\"\r\n", pch_path.c_str() );
}
else