From 60400404e23d6bc456071fc5acaf29c7b6bf550a Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Wed, 21 Oct 2009 23:10:26 +0000 Subject: 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 --- chrome/app/client_util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/app/client_util.h') 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 -- cgit v1.1