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

Unified Diff: base/native_library_win.cc

Issue 2268002: Implemented mid-level Negotiate protocol for Posix. (Closed)
Patch Set: Merged with trunk. Created 10 years, 7 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 | « base/native_library_mac.mm ('k') | net/http/http_auth_gssapi_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/native_library_win.cc
diff --git a/base/native_library_win.cc b/base/native_library_win.cc
index 1c7accf5f7109f02a0fcb5062a4c0d482a932dd1..82c90fa11c2f5e25ecb8f70d94caab2c9d1b5c9c 100644
--- a/base/native_library_win.cc
+++ b/base/native_library_win.cc
@@ -8,6 +8,7 @@
#include "base/file_util.h"
#include "base/string_util.h"
+#include "base/win_util.h"
namespace base {
@@ -48,4 +49,10 @@ string16 GetNativeLibraryName(const string16& name) {
return name + ASCIIToUTF16(".dll");
}
+string16 GetLibraryErrorMessage() {
+ DWORD last_err = GetLastError();
+ string16 err_message = win_util::FormatMessage(last_err);
+ return err_message;
+}
+
} // namespace base
« no previous file with comments | « base/native_library_mac.mm ('k') | net/http/http_auth_gssapi_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698