diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-06 18:52:00 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-06 18:52:00 +0000 |
commit | 40d53ccc6cfc88ad074cbfdf328fbb9a14efcf6f (patch) | |
tree | 1067df86c066d7eacd9033d81ba5d75d7b9a6f6d /chrome | |
parent | fded3d68adda86e5056d4b7a038bc66f3f6492b1 (diff) | |
download | chromium_src-40d53ccc6cfc88ad074cbfdf328fbb9a14efcf6f.zip chromium_src-40d53ccc6cfc88ad074cbfdf328fbb9a14efcf6f.tar.gz chromium_src-40d53ccc6cfc88ad074cbfdf328fbb9a14efcf6f.tar.bz2 |
* Check expand.exe exit code.
Review URL: http://codereview.chromium.org/17058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7591 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/installer/mini_installer/mini_installer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/installer/mini_installer/mini_installer.cc b/chrome/installer/mini_installer/mini_installer.cc index 7269188..30f6208 100644 --- a/chrome/installer/mini_installer/mini_installer.cc +++ b/chrome/installer/mini_installer/mini_installer.cc @@ -206,7 +206,9 @@ BOOL CALLBACK OnResourceFound(HMODULE module, const wchar_t* type, ::lstrcatW(expand_cmd, L"\""); ::lstrcatW(expand_cmd, ctx->full_path); ::lstrcatW(expand_cmd, L"\""); - if (!RunProcessAndWait(NULL, expand_cmd, NULL)) { + int exit_code = 0; + if (!RunProcessAndWait(NULL, expand_cmd, &exit_code) || + (exit_code != 0)) { // Somehow we failed to uncompress the file. Exit now and leave the file // behind for postmortem analysis. return FALSE; |