VirtualBox

Changeset 104619 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 14, 2024 6:54:38 AM (7 months ago)
Author:
vboxsync
Message:

ValidationKit/bootsectors/VBoxBs2Linker.cpp: Remove some unread variable, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/VBoxBs2Linker.cpp

    r98103 r104619  
    159159    /* Copy the input files to the output file, with sector padding applied. */
    160160    int rcExit = 0;
    161     size_t off = 0;
    162161    for (unsigned i = 0; i < cInputs && rcExit == 0; i++)
    163162    {
     
    192191
    193192                /* Write the block to the output file. */
    194                 if (fwrite(abBuf, sizeof(uint8_t), cbRead, pOutput) == cbRead)
    195                     off += cbRead;
    196                 else
     193                if (fwrite(abBuf, sizeof(uint8_t), cbRead, pOutput) != cbRead)
    197194                {
    198195                    fprintf(stderr, "error: fwrite failed\n");
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