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

Side by Side Diff: chrome/installer/mini_installer/pe_resource.cc

Issue 10835019: Fix license headers in a number of files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix case Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/installer/mini_installer/pe_resource.h" 5 #include "chrome/installer/mini_installer/pe_resource.h"
6 6
7 PEResource::PEResource(HRSRC resource, HMODULE module) 7 PEResource::PEResource(HRSRC resource, HMODULE module)
8 : resource_(resource), module_(module) { 8 : resource_(resource), module_(module) {
9 } 9 }
10 10
11 PEResource::PEResource(const wchar_t* name, const wchar_t* type, HMODULE module) 11 PEResource::PEResource(const wchar_t* name, const wchar_t* type, HMODULE module)
(...skipping 27 matching lines...) Expand all
39 return false; 39 return false;
40 } 40 }
41 DWORD written = 0; 41 DWORD written = 0;
42 if (!::WriteFile(out_file, data, static_cast<DWORD>(resource_size), 42 if (!::WriteFile(out_file, data, static_cast<DWORD>(resource_size),
43 &written, NULL)) { 43 &written, NULL)) {
44 ::CloseHandle(out_file); 44 ::CloseHandle(out_file);
45 return false; 45 return false;
46 } 46 }
47 return ::CloseHandle(out_file) ? true : false; 47 return ::CloseHandle(out_file) ? true : false;
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698