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

Unified Diff: runtime/bin/extensions_macos.cc

Issue 10943002: Improve dlsym() error-detection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « runtime/bin/extensions_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/extensions_macos.cc
diff --git a/runtime/bin/extensions_macos.cc b/runtime/bin/extensions_macos.cc
index d147d9d7e47d667dddbf3415f1b4e629a683f5b6..54f5c71b5881e3f060eaff966048a02f5c6788bb 100644
--- a/runtime/bin/extensions_macos.cc
+++ b/runtime/bin/extensions_macos.cc
@@ -16,6 +16,7 @@ void* Extensions::LoadExtensionLibrary(const char* library_path,
}
void* Extensions::ResolveSymbol(void* lib_handle, const char* symbol) {
+ dlerror();
void* result = dlsym(lib_handle, symbol);
if (dlerror() != NULL) return NULL;
return result;
« no previous file with comments | « runtime/bin/extensions_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698