| 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
|
|
|