This patch ensures the proper slashes are used based on the platform.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@937070 
13f79535-47bb-0310-9956-
ffa450edef68
     CharLowerBuff(buf, len);
     strcpy(resolved_path, buf);
   }
+
+  // Replace backslashes with forward slashes so the
+  // rest of the code behaves correctly.
+  size_t resolved_len = strlen(resolved_path);
+  for (size_t i = 0; i < resolved_len; i++) {
+    if (resolved_path[i] == '\\') {
+      resolved_path[i] = '/';
+    }
+  }
   return resolved_path;
 #else
   return realpath(path, resolved_path);