Index: trunk/ab5.0/jenga/src/common/Path.cpp
===================================================================
--- trunk/ab5.0/jenga/src/common/Path.cpp	(revision 472)
+++ trunk/ab5.0/jenga/src/common/Path.cpp	(revision 477)
@@ -50,8 +50,14 @@
 	}
 
-	i3=(int)baseDirPath.size();i4=0;
+	std::string tempBaseDirPath = baseDirPath;
+	if( tempBaseDirPath[tempBaseDirPath.size()-1] != '\\' )
+	{
+		tempBaseDirPath += "\\";
+	}
+
+	i3=(int)tempBaseDirPath.size();i4=0;
 	while(i4<i2){
 		for(i3--;;i3--){
-			if(baseDirPath[i3-1]=='\\'){
+			if(tempBaseDirPath[i3-1]=='\\'){
 				i4++;
 				break;
@@ -59,9 +65,14 @@
 		}
 	}
-	memcpy(temporary,baseDirPath.c_str(),i3);
+	memcpy(temporary,tempBaseDirPath.c_str(),i3);
 	temporary[i3]=0;
 	lstrcat(temporary,resultPath+i);
 	lstrcpy(resultPath,temporary);
 
+	if( resultPath[lstrlen(resultPath)-1] == '\\' )
+	{
+		resultPath[lstrlen(resultPath)-1] = 0;
+	}
+
 	return resultPath;
 }
