Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: runtime/bin/loader.cc

Issue 2149193004: Fix Windows bots (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/loader.cc
diff --git a/runtime/bin/loader.cc b/runtime/bin/loader.cc
index 938bfec24759643a1a3ab6c1f0bfcec3a129fb44..cf6f4ec7a365c72a097fa60c4778f87deb7a4659 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<const char*>(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)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698