VirtualBox

Changeset 92826 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 8, 2021 4:06:42 PM (3 years ago)
Author:
vboxsync
Message:

Main: bugref:1909: Fixed compilation errors

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
2 edited

Legend:

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

    r92824 r92826  
    267267{
    268268#ifdef VBOX_WITH_VBOXMANAGE_NLS
    269     if (pszLang == NULL || pszLang[0] == 0 || pszLang[0] == 'C' && pszLang[1] == 0)
     269    if (pszLang == NULL || pszLang[0] == 0 || (pszLang[0] == 'C' && pszLang[1] == 0))
    270270        pszLang = "en_US";
    271271    void *pHelpLangEntry = NULL;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r92824 r92826  
    114114    uint32_t cFound = 0;
    115115#ifdef VBOX_WITH_VBOXMANAGE_NLS
    116     HELP_LANG_ENTRY *pHelpLangEntry[2] = {ASMAtomicReadPtrT(&g_pHelpLangEntry, HELP_LANG_ENTRY *), &g_apHelpLangEntries[0] };
     116    HELP_LANG_ENTRY *pHelpLangEntry[2] = {(HELP_LANG_ENTRY *)ASMAtomicReadPtr(&g_pHelpLangEntry), &g_apHelpLangEntries[0] };
    117117#else
    118118    HELP_LANG_ENTRY *pHelpLangEntry[1] = {(HELP_LANG_ENTRY *)g_pHelpLangEntry};
     
    176176    uint32_t cFound = 0;
    177177#ifdef VBOX_WITH_VBOXMANAGE_NLS
    178     HELP_LANG_ENTRY *pHelpLangEntry[2] = {ASMAtomicReadPtrT(&g_pHelpLangEntry, HELP_LANG_ENTRY *), &g_apHelpLangEntries[0] };
     178    HELP_LANG_ENTRY *pHelpLangEntry[2] = {(HELP_LANG_ENTRY *)ASMAtomicReadPtr(&g_pHelpLangEntry), &g_apHelpLangEntries[0] };
    179179#else
    180180    HELP_LANG_ENTRY *pHelpLangEntry[1] = {(HELP_LANG_ENTRY *)g_pHelpLangEntry};
     
    10361036        uint32_t cPendingBlankLines = 0;
    10371037#ifdef VBOX_WITH_VBOXMANAGE_NLS
    1038         HELP_LANG_ENTRY *pHelpLangEntry = ASMAtomicReadPtrT(&g_pHelpLangEntry, HELP_LANG_ENTRY *);
     1038        HELP_LANG_ENTRY *pHelpLangEntry = (HELP_LANG_ENTRY *)ASMAtomicReadPtr(&g_pHelpLangEntry);
    10391039#else
    10401040        HELP_LANG_ENTRY *pHelpLangEntry = (HELP_LANG_ENTRY *)g_pHelpLangEntry;
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