Changeset 92826 in vbox for trunk/src/VBox
- Timestamp:
- Dec 8, 2021 4:06:42 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r92824 r92826 267 267 { 268 268 #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)) 270 270 pszLang = "en_US"; 271 271 void *pHelpLangEntry = NULL; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r92824 r92826 114 114 uint32_t cFound = 0; 115 115 #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] }; 117 117 #else 118 118 HELP_LANG_ENTRY *pHelpLangEntry[1] = {(HELP_LANG_ENTRY *)g_pHelpLangEntry}; … … 176 176 uint32_t cFound = 0; 177 177 #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] }; 179 179 #else 180 180 HELP_LANG_ENTRY *pHelpLangEntry[1] = {(HELP_LANG_ENTRY *)g_pHelpLangEntry}; … … 1036 1036 uint32_t cPendingBlankLines = 0; 1037 1037 #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); 1039 1039 #else 1040 1040 HELP_LANG_ENTRY *pHelpLangEntry = (HELP_LANG_ENTRY *)g_pHelpLangEntry;
Note:
See TracChangeset
for help on using the changeset viewer.