Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10061)

Unified Diff: chrome/installer/util/l10n_string_util.cc

Issue 151101: Fixit: Remove bunch of coverity warnings from chrome/installer/*. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/google_chrome_distribution_unittest.cc ('k') | chrome/installer/util/lzma_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
« no previous file with comments | « chrome/installer/util/google_chrome_distribution_unittest.cc ('k') | chrome/installer/util/lzma_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698