VirtualBox

Changeset 107744 in vbox


Ignore:
Timestamp:
Jan 14, 2025 9:56:21 AM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166852
Message:

src/VBox/Main/testcase/tstVBoxAPIXPCOM.cpp: Fixed warnings found by Parfait (unused assignment). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstVBoxAPIXPCOM.cpp

    r106061 r107744  
    217217    /* alternative to illustrate the use of string classes */
    218218    rc = machine->SetName(NS_ConvertUTF8toUTF16("A new name").get());
     219    if (NS_FAILED(rc))
     220    {
     221        printf("Error: could not set name for machine! rc=%#x\n", rc);
     222        return;
     223    }
     224
    219225    rc = machine->SetMemorySize(128);
     226    if (NS_FAILED(rc))
     227    {
     228        printf("Error: could not set memory size for machine! rc=%#x\n", rc);
     229        return;
     230    }
    220231
    221232    /*
Note: See TracChangeset for help on using the changeset viewer.

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