summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/uscxml/util/URL.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/uscxml/util/URL.cpp b/src/uscxml/util/URL.cpp
index cb3abe3..561b9aa 100644
--- a/src/uscxml/util/URL.cpp
+++ b/src/uscxml/util/URL.cpp
@@ -141,8 +141,12 @@ URL URLImpl::resolveWithCWD(URLImpl* relative) {
currPath[sizeof(currPath) - 1] = '\0'; /* not really required? */
// without the trailing slash, last component is assumed a file
- std::shared_ptr<URLImpl> cwdURL(new URLImpl(std::string("file://") + currPath + PATH_SEPERATOR));
-
+#if WIN32
+ std::shared_ptr<URLImpl> cwdURL(new URLImpl(std::string(currPath)));
+#else
+ std::shared_ptr<URLImpl> cwdURL(new URLImpl(std::string("file://") + currPath + PATH_SEPERATOR));
+#endif
+
return resolve(relative, cwdURL.get());
}