diff options
Diffstat (limited to 'chrome/installer/util')
-rw-r--r-- | chrome/installer/util/shell_util.cc | 2 |
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; |