VirtualBox

Changeset 34537 in vbox for trunk/src


Ignore:
Timestamp:
Nov 30, 2010 6:11:51 PM (14 years ago)
Author:
vboxsync
Message:

extpack & manifest bugfixes.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/VBoxExtPackHelperApp.cpp

    r34535 r34537  
    313313        else
    314314            RTMsgError("RTManifestEqualsEx failed: %Rrc", rc);
    315 #if 1
     315#if 0
    316316        RTVFSIOSTREAM hVfsIosStdOut = NIL_RTVFSIOSTREAM;
    317317        RTVfsIoStrmFromStdHandle(RTHANDLESTD_OUTPUT, RTFILE_O_WRITE, true, &hVfsIosStdOut);
     
    686686                    }
    687687                    else if (*pszAdjName && strcmp(pszAdjName, "."))
    688                         rcExit = UnpackExtPackDir(pszAdjName, hVfsObj);
     688                        rcExit = UnpackExtPackDir(szDstPath, hVfsObj);
    689689                }
    690690                else
     
    713713                rc = RTEXITCODE_SUCCESS;
    714714            else if (rc == VERR_NOT_EQUAL && szError[0])
    715                 RTMsgError("Manifest mismatch: %s", szError);
     715                rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Manifest mismatch: %s", szError);
    716716            else
    717                 RTMsgError("RTManifestEqualsEx failed: %Rrc", rc);
    718         }
    719 
     717                rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "RTManifestEqualsEx failed: %Rrc", rc);
     718        }
     719#if 0
     720        RTVFSIOSTREAM hVfsIosStdOut = NIL_RTVFSIOSTREAM;
     721        RTVfsIoStrmFromStdHandle(RTHANDLESTD_OUTPUT, RTFILE_O_WRITE, true, &hVfsIosStdOut);
     722        RTVfsIoStrmWrite(hVfsIosStdOut, "Unpack:\n", sizeof("Unpack:\n") - 1, true, NULL);
     723        RTManifestWriteStandard(hUnpackManifest, hVfsIosStdOut);
     724        RTVfsIoStrmWrite(hVfsIosStdOut, "Valid:\n", sizeof("Valid:\n") - 1, true, NULL);
     725        RTManifestWriteStandard(hValidManifest, hVfsIosStdOut);
     726#endif
    720727        RTManifestRelease(hUnpackManifest);
    721728    }
  • trunk/src/VBox/Runtime/common/checksum/manifest3.cpp

    r34495 r34537  
    528528                || RT_FAILURE(rc))
    529529                break;
    530             rtManifestHashesUpdate(pHashes, pvBuf, cbBuf);
     530            rtManifestHashesUpdate(pHashes, pvBuf, cbRead);
    531531        }
    532532        if (RT_SUCCESS(rc))
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