VirtualBox

Ignore:
Timestamp:
Aug 22, 2022 3:27:17 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153219
Message:

/Config.kmk and many other places: Change VBOX_VENDOR to the official copyright holder text, needs follow-up changes and equivalent adjustments elsewhere.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBugReport/VBoxBugReport.cpp

    r93115 r96402  
    123123    {
    124124        int rc = RTDirOpenFiltered(&m_hDir, pcszPath, RTDIRFILTER_WINNT, 0);
    125         if (RT_FAILURE(rc))
     125        if (RT_FAILURE(rc) && rc != VERR_FILE_NOT_FOUND && rc != VERR_PATH_NOT_FOUND)
    126126            throw RTCError(com::Utf8StrFmt("Failed to open directory '%s'\n", pcszPath));
    127127    };
    128128    ~VBRDir()
    129129    {
    130         int rc = RTDirClose(m_hDir);
    131         AssertRC(rc);
     130        if (RT_VALID_PTR(m_hDir))
     131        {
     132            int rc = RTDirClose(m_hDir);
     133            AssertRC(rc);
     134        }
    132135    };
    133136    const char *next(void)
    134137    {
     138        if (!RT_VALID_PTR(m_hDir))
     139            return NULL;
     140
    135141        int rc = RTDirRead(m_hDir, &m_DirEntry, NULL);
    136142        if (RT_SUCCESS(rc))
     
    652658void addMachine(MachineInfoList& list, ComPtr<IMachine> machine)
    653659{
     660    BOOL fAccessible = FALSE;
     661    HRESULT hrc = machine->COMGETTER(Accessible)(&fAccessible);
     662    if (SUCCEEDED(hrc) && !fAccessible)
     663        return
     664    handleComError(hrc, "Failed to get accessible status of VM");
     665
    654666    com::Bstr name, logFolder, settingsFile;
    655667    handleComError(machine->COMGETTER(Name)(name.asOutParam()),
     
    668680{
    669681    RTStrmPrintf(g_pStdErr, VBOX_PRODUCT " Bug Report Tool " VBOX_VERSION_STRING "\n"
    670                  "(C) " VBOX_C_YEAR " " VBOX_VENDOR "\n"
    671                  "All rights reserved.\n\n");
     682                 "Copyright (C) " VBOX_C_YEAR " " VBOX_VENDOR "\n\n");
    672683}
    673684
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