summaryrefslogtreecommitdiffstats
path: root/chrome/installer
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 16:18:36 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 16:18:36 +0000
commit513bb31c8a2665de21ccadbef62f2f16fb194e90 (patch)
tree845cc886c6c287a71148a6996221c63e5e1712e3 /chrome/installer
parent67da235a1f65da29dc578af28ce043af6be0fa74 (diff)
downloadchromium_src-513bb31c8a2665de21ccadbef62f2f16fb194e90.zip
chromium_src-513bb31c8a2665de21ccadbef62f2f16fb194e90.tar.gz
chromium_src-513bb31c8a2665de21ccadbef62f2f16fb194e90.tar.bz2
code review change
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r--chrome/installer/util/shell_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc
index 550a7a4..a2b6307 100644
--- a/chrome/installer/util/shell_util.cc
+++ b/chrome/installer/util/shell_util.cc
@@ -324,7 +324,7 @@ bool ShellUtil::GetQuickLaunchPath(bool system_level, std::wstring* path) {
HMODULE module = LoadLibrary(L"Userenv.dll");
PROFILE_FUNC p = reinterpret_cast<PROFILE_FUNC>(GetProcAddress(module,
"GetDefaultUserProfileDirectoryW"));
- DWORD size = MAX_PATH;
+ DWORD size = _countof(qlaunch);
if ((p == NULL) || ((p)(qlaunch, &size) != TRUE))
return false;
*path = qlaunch;