git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2544
91ce42f0-d328-0410-95d8-
f526ca767f89
BOOL processWin32BackupAPIBlock (BFILE *bfd, void *pBuffer, size_t dwSize)
{
/* pByte contains the buffer
BOOL processWin32BackupAPIBlock (BFILE *bfd, void *pBuffer, size_t dwSize)
{
/* pByte contains the buffer
- dwSize the len to be processed. function assumes to be called in successive
- incremental order over the complete BackupRead stream beginning at pos 0 and
- ending at the end. */
+ dwSize the len to be processed. function assumes to be
+ called in successive incremental order over the complete
+ BackupRead stream beginning at pos 0 and ending at the end.
+ */
PROCESS_WIN32_BACKUPAPIBLOCK_CONTEXT* pContext = &(bfd->win32DecompContext);
BOOL bContinue = FALSE;
PROCESS_WIN32_BACKUPAPIBLOCK_CONTEXT* pContext = &(bfd->win32DecompContext);
BOOL bContinue = FALSE;
DWORD dwOffsetSource;
if (pContext->liNextHeader < 0) {
DWORD dwOffsetSource;
if (pContext->liNextHeader < 0) {
- /* start of header was before this block,
- so we continue with the part in the current block */
+ /* start of header was before this block, so we
+ * continue with the part in the current block
+ */
dwOffsetTarget = abs (pContext->liNextHeader);
dwOffsetSource = 0;
}
dwOffsetTarget = abs (pContext->liNextHeader);
dwOffsetSource = 0;
}
BOOL bHeaderIsComplete;
if (dwHeaderPartLen <= dwSize-dwOffsetSource)
BOOL bHeaderIsComplete;
if (dwHeaderPartLen <= dwSize-dwOffsetSource)
- /* header (or rest of header) is completely available in current block */
+ /* header (or rest of header) is completely available
+ in current block
+ */
bHeaderIsComplete = TRUE;
else {
/* header will continue in next block */
bHeaderIsComplete = TRUE;
else {
/* header will continue in next block */
* Kern Sibbald May MMIII
*/
/*
* Kern Sibbald May MMIII
*/
/*
- Copyright (C) 2000-2005 Kern Sibbald
+ Copyright (C) 2003-2005 Kern Sibbald
This program is free software; you can redistribute it and/or
This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of
- the License, or (at your option) any later version.
+ modify it under the terms of the GNU General Public License
+ version 2 as amended with additional clauses defined in the
+ file LICENSE in the main source directory.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public
- License along with this program; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- MA 02111-1307, USA.
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ the file LICENSE for additional details.