From 4bfdaa83b2c5c6f90f410e7eea4729f8f65d3440 Mon Sep 17 00:00:00 2001 From: John McCutchan Date: Fri, 15 Jul 2016 14:34:29 -0700 Subject: [PATCH] Fix Windows bots BUG= Review URL: https://codereview.chromium.org/2149193004 . --- runtime/bin/loader.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/bin/loader.cc b/runtime/bin/loader.cc index 938bfec2475..cf6f4ec7a36 100644 --- a/runtime/bin/loader.cc +++ b/runtime/bin/loader.cc @@ -304,7 +304,12 @@ bool Loader::ProcessResultLocked(Loader* loader, Loader::IOResult* result) { return false; } const char* extension_uri = reinterpret_cast(result->uri); - const char* lib_path = DartUtils::RemoveScheme(lib_uri); + const char* lib_path = NULL; + if (strncmp(lib_uri, "file://", 7) == 0) { + lib_path = DartUtils::RemoveScheme(lib_uri); + } else { + lib_path = lib_uri; + } const char* extension_path = DartUtils::RemoveScheme(extension_uri); if (strchr(extension_path, '/') != NULL || (IsWindowsHost() && strchr(extension_path, '\\') != NULL)) {