diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-21 23:10:26 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-21 23:10:26 +0000 |
commit | 60400404e23d6bc456071fc5acaf29c7b6bf550a (patch) | |
tree | b5bebffd3c958601033e5224f30c1d7c039cfbc3 /chrome/app/client_util.h | |
parent | f11f0de7f3e245d49f651423907f2c813a84ee6a (diff) | |
download | chromium_src-60400404e23d6bc456071fc5acaf29c7b6bf550a.zip chromium_src-60400404e23d6bc456071fc5acaf29c7b6bf550a.tar.gz chromium_src-60400404e23d6bc456071fc5acaf29c7b6bf550a.tar.bz2 |
Coverity: Convert dll_path_ to a std::wstring. This avoids having dll_path_ uninitialized after the object is constructed.
CID=1632
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/306037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/client_util.h')
-rw-r--r-- | chrome/app/client_util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/app/client_util.h b/chrome/app/client_util.h index 2821c1d..b3ab7e7 100644 --- a/chrome/app/client_util.h +++ b/chrome/app/client_util.h @@ -21,7 +21,7 @@ typedef int (*DLL_MAIN)(HINSTANCE instance, sandbox::SandboxInterfaceInfo*, extern const wchar_t kProductVersionKey[]; // Returns true if file specified by file_path exists -bool FileExists(const wchar_t* const file_path); +bool FileExists(const std::wstring& file_path); // Returns Chromium version after reading it from reg_key registry key. Uses // exe_path to detemine registry root key (HKLM/HKCU). Note it is the @@ -37,8 +37,8 @@ std::wstring GetDLLPath(const std::wstring& dll_name, const std::wstring& dll_path); // Returns the path to the exe (without the file name) that called this -// function. The buffer should already be allocated (ideally of MAX_PATH size). -void GetExecutablePath(wchar_t* exe_path); +// function. +std::wstring GetExecutablePath(); } // namespace client_util |