VirtualBox

Changeset 92831 in vbox


Ignore:
Timestamp:
Dec 8, 2021 5:02:05 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148757
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/Makefile.kmk

    r92824 r92831  
    360360                '    PCRTMSGREFENTRY *papHelpEntries;' \
    361361                '    const uint32_t   cHelpEntries;' \
    362                 '} HELP_LANG_ENTRY;' \
     362                '} HELP_LANG_ENTRY, *PHELP_LANG_ENTRY;' \
    363363                '' \
    364364                'extern HELP_LANG_ENTRY g_apHelpLangEntries[];' \
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r92828 r92831  
    114114    uint32_t cFound = 0;
    115115#ifdef VBOX_WITH_VBOXMANAGE_NLS
    116     HELP_LANG_ENTRY *pHelpLangEntry[2] = {(HELP_LANG_ENTRY *)ASMAtomicReadPtr(&g_pHelpLangEntry), &g_apHelpLangEntries[0] };
     116    PHELP_LANG_ENTRY pHelpLangEntry[2] = {ASMAtomicReadPtrT(&g_pHelpLangEntry, PHELP_LANG_ENTRY), &g_apHelpLangEntries[0] };
    117117#else
    118     HELP_LANG_ENTRY *pHelpLangEntry[1] = {(HELP_LANG_ENTRY *)g_pHelpLangEntry};
     118    PHELP_LANG_ENTRY pHelpLangEntry[1] = {(PHELP_LANG_ENTRY)g_pHelpLangEntry};
    119119#endif
    120120    /* Try to find translated, then untranslated */
     
    176176    uint32_t cFound = 0;
    177177#ifdef VBOX_WITH_VBOXMANAGE_NLS
    178     HELP_LANG_ENTRY *pHelpLangEntry[2] = {(HELP_LANG_ENTRY *)ASMAtomicReadPtr(&g_pHelpLangEntry), &g_apHelpLangEntries[0] };
     178    PHELP_LANG_ENTRY pHelpLangEntry[2] = {ASMAtomicReadPtrT(&g_pHelpLangEntry, PHELP_LANG_ENTRY), &g_apHelpLangEntries[0] };
    179179#else
    180     HELP_LANG_ENTRY *pHelpLangEntry[1] = {(HELP_LANG_ENTRY *)g_pHelpLangEntry};
     180    PHELP_LANG_ENTRY pHelpLangEntry[1] = {(PHELP_LANG_ENTRY)g_pHelpLangEntry};
    181181#endif
    182182    /* Try to find translated, then untranslated */
     
    10361036        uint32_t cPendingBlankLines = 0;
    10371037#ifdef VBOX_WITH_VBOXMANAGE_NLS
    1038         HELP_LANG_ENTRY *pHelpLangEntry = (HELP_LANG_ENTRY *)ASMAtomicReadPtr(&g_pHelpLangEntry);
     1038        PHELP_LANG_ENTRY pHelpLangEntry = ASMAtomicReadPtrT(&g_pHelpLangEntry, PHELP_LANG_ENTRY);
    10391039#else
    1040         HELP_LANG_ENTRY *pHelpLangEntry = (HELP_LANG_ENTRY *)g_pHelpLangEntry;
     1040        PHELP_LANG_ENTRY pHelpLangEntry = (PHELP_LANG_ENTRY)g_pHelpLangEntry;
    10411041#endif
    10421042        for (uint32_t i = 0; i < pHelpLangEntry->cHelpEntries; i++)
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