| Index: chrome/installer/util/l10n_string_util.cc
|
| diff --git a/chrome/installer/util/l10n_string_util.cc b/chrome/installer/util/l10n_string_util.cc
|
| index ff4ec3f06ef35c803c9a0ee9872c33f69116913d..029f4ddcaba54b58cdddde4909f2c4edd04e2d1d 100644
|
| --- a/chrome/installer/util/l10n_string_util.cc
|
| +++ b/chrome/installer/util/l10n_string_util.cc
|
| @@ -1,3 +1,10 @@
|
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +//
|
| +// This file defines specific implementation of BrowserDistribution class for
|
| +// Google Chrome.
|
| +
|
| #include <atlbase.h>
|
| #include <shlwapi.h>
|
|
|
| @@ -166,8 +173,8 @@ std::wstring GetLocalizedString(int base_message_id) {
|
| // explained here : http://support.microsoft.com/kb/220830
|
| std::wstring GetLocalizedEulaResource() {
|
| wchar_t full_exe_path[MAX_PATH];
|
| - int len = ::GetModuleFileNameW(NULL, full_exe_path, MAX_PATH);
|
| - if (len <= 0 && len >= MAX_PATH)
|
| + int len = ::GetModuleFileName(NULL, full_exe_path, MAX_PATH);
|
| + if (len == 0 || len == MAX_PATH)
|
| return L"";
|
| std::wstring language = GetSystemLanguage();
|
| const wchar_t* resource = L"IDR_OEMPG_EN.HTML";
|
|
|