| Index: chrome/installer/util/lzma_util.cc
|
| diff --git a/chrome/installer/util/lzma_util.cc b/chrome/installer/util/lzma_util.cc
|
| index 3e931ceaf6a8b53ea06dec08079fe587d957a859..cc8569d42913f79f41e614b7de2fdfb60009ae1b 100644
|
| --- a/chrome/installer/util/lzma_util.cc
|
| +++ b/chrome/installer/util/lzma_util.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
| +// 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.
|
|
|
| @@ -149,9 +149,9 @@ DWORD LzmaUtil::UnPack(const std::wstring& location) {
|
| break;
|
| }
|
|
|
| - WriteFile(hFile, outBuffer + offset, (DWORD) outSizeProcessed,
|
| - &written, NULL);
|
| - if (written != outSizeProcessed) {
|
| + if ((!WriteFile(hFile, outBuffer + offset, (DWORD) outSizeProcessed,
|
| + &written, NULL)) ||
|
| + (written != outSizeProcessed)) {
|
| ret = GetLastError();
|
| CloseHandle(hFile);
|
| break;
|
|
|