aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/serdi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 8f58f2e8..9a366770 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -168,8 +168,13 @@ main(int argc, char** argv)
if (strncmp((const char*)input, "file:", 5)) {
fprintf(stderr, "unsupported URI scheme `%s'\n", input);
return 1;
+#ifdef __WIN32__
+ } else if (!strncmp((const char*)input, "file:///", 8)) {
+ input += 8;
+#else
} else if (!strncmp((const char*)input, "file://", 7)) {
input += 7;
+#endif
} else {
input += 5;
}