VirtualBox

Changeset 16535 in vbox


Ignore:
Timestamp:
Feb 5, 2009 5:37:32 PM (16 years ago)
Author:
vboxsync
Message:

tstLinuxC.c: More cryptic '_' -> Utf16 changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/tstLinuxC.c

    r16533 r16535  
    105105            if (isAccessible)
    106106            {
    107                 PRUnichar *machineName_;
     107                PRUnichar *machineNameUtf16;
    108108                char *machineName;
    109109
    110                 machine->vtbl->GetName(machine, &machineName_);
    111                 VBoxUtf16ToUtf8(machineName_,&machineName);
     110                machine->vtbl->GetName(machine, &machineNameUtf16);
     111                VBoxUtf16ToUtf8(machineNameUtf16,&machineName);
    112112                printf("\tName:        %s\n", machineName);
    113113
    114114                VBoxUtf8Free(machineName);
    115                 VBoxComUnallocMem(machineName_);
     115                VBoxComUnallocMem(machineNameUtf16);
    116116            }
    117117            else
     
    156156                {
    157157                    PRUnichar *typeId;
    158                     PRUnichar *osName_;
     158                    PRUnichar *osNameUtf16;
    159159                    char *osName;
    160160                    IGuestOSType *osType = NULL;
     
    162162                    machine->vtbl->GetOSTypeId(machine, &typeId);
    163163                    virtualBox->vtbl->GetGuestOSType(virtualBox, typeId, &osType);
    164                     osType->vtbl->GetDescription(osType, &osName_);
    165                     VBoxUtf16ToUtf8(osName_,&osName);
     164                    osType->vtbl->GetDescription(osType, &osNameUtf16);
     165                    VBoxUtf16ToUtf8(osNameUtf16,&osName);
    166166                    printf("\tGuest OS:    %s\n\n", osName);
    167167
    168168                    osType->vtbl->nsisupports.Release((void *)osType);
    169169                    VBoxUtf8Free(osName);
    170                     VBoxComUnallocMem(osName_);
     170                    VBoxComUnallocMem(osNameUtf16);
    171171                    VBoxComUnallocMem(typeId);
    172172                }
     
    275275        {
    276276            IVirtualBoxErrorInfo *errorInfo;
    277             PRUnichar *text_;
     277            PRUnichar *textUtf16;
    278278            char *text;
    279279
    280280            progress->vtbl->GetErrorInfo(progress, &errorInfo);
    281             errorInfo->vtbl->GetText(errorInfo, &text_);
    282             VBoxUtf16ToUtf8(text_, &text);
     281            errorInfo->vtbl->GetText(errorInfo, &textUtf16);
     282            VBoxUtf16ToUtf8(textUtf16, &text);
    283283            printf("Error: %s\n", text);
    284284
    285             VBoxComUnallocMem(text_);
     285            VBoxComUnallocMem(textUtf16);
    286286            VBoxUtf8Free(text);
    287287        }
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