--- a/src/utils/pathut.cpp
+++ b/src/utils/pathut.cpp
@@ -444,6 +444,14 @@
     } else {
         ret = "/";
     }
+
+#ifdef _WIN32
+    // Raw drive needs a final /
+    if (path_strlookslikedrive(ret)) {
+        path_catslash(ret);
+    }
+#endif
+
     return ret;
 }