Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_ | |
| 6 #define CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 namespace mini_installer { | |
| 10 | |
| 11 // Same as the tool, expand.exe. Decompresses a file that was compressed | |
| 12 // using Microsoft's MSCF compression algorithm. | |
| 13 // The |source| pointer must be writable as internally the name and path | |
| 14 // of the source file must be temporarily split up and we don't feel like | |
| 15 // allocating extra buffers for this (in all cases of using this function, | |
| 16 // the buffers are devoted to this purpose anyway). | |
| 17 bool Expand(wchar_t* source, const wchar_t* destination); | |
|
amit
2011/03/15 20:54:35
if source is writable, why not take in the source
tommi (sloooow) - chröme
2011/03/16 02:43:30
The idea is similar to how CreateProcess works. T
amit
2011/03/16 15:50:26
Probably OK but CreateProcess has caused enough pa
tommi (sloooow) - chröme
2011/03/16 20:22:20
of course (doh)! done!
| |
| 18 | |
| 19 } // namespace mini_installer | |
| 20 | |
| 21 #endif // CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_ | |
| OLD | NEW |