summaryrefslogtreecommitdiffstats
path: root/base/native_library.h
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-20 06:07:26 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-20 06:07:26 +0000
commitf4e911459762048780f642b80e46f04c43c573e1 (patch)
treef3523cd5e5d6be43a5957225c5afb730ac235d16 /base/native_library.h
parent18053f969a4b7013de27db386ad8ea67bae4c470 (diff)
downloadchromium_src-f4e911459762048780f642b80e46f04c43c573e1.zip
chromium_src-f4e911459762048780f642b80e46f04c43c573e1.tar.gz
chromium_src-f4e911459762048780f642b80e46f04c43c573e1.tar.bz2
Set error in LoadNativeLibrary() on Windows.
If the native library fails to load, call GetLastError() immediately and set error with the last system error code. The list of Windows system error codes can be found at: http://msdn.microsoft.com/en-us/library/windows/desktop/ms681381.aspx BUG=353771 TBR=evan@chromium.org Review URL: https://codereview.chromium.org/199413026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258214 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/native_library.h')
-rw-r--r--base/native_library.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/native_library.h b/base/native_library.h
index 9353b1f..d7513d0 100644
--- a/base/native_library.h
+++ b/base/native_library.h
@@ -52,8 +52,7 @@ typedef void* NativeLibrary;
// Loads a native library from disk. Release it with UnloadNativeLibrary when
// you're done. Returns NULL on failure.
-// If |err| is not NULL, it may be filled in with an error message on
-// error.
+// If |error| is not NULL, it may be filled in with an error message on error.
BASE_EXPORT NativeLibrary LoadNativeLibrary(const FilePath& library_path,
std::string* error);