VirtualBox

Changeset 54397 in vbox for trunk/src


Ignore:
Timestamp:
Feb 23, 2015 5:46:47 PM (10 years ago)
Author:
vboxsync
Message:

Storage/RAW: fix raw image creation, previous code rounded up to full zero-fill chunks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/RAW.cpp

    r50988 r54397  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    301301        while (uOff < cbSize)
    302302        {
    303             unsigned cbChunk = (unsigned)RT_MIN(cbSize, RAW_FILL_SIZE);
     303            unsigned cbChunk = (unsigned)RT_MIN(cbSize - uOff, RAW_FILL_SIZE);
    304304
    305305            rc = vdIfIoIntFileWriteSync(pImage->pIfIo, pImage->pStorage, uOff,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette