Switch char-array to std::string

This commit is contained in:
tomcw
2025-11-16 16:05:13 +00:00
parent 3ca847388a
commit 6f44014872
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -245,10 +245,10 @@ void CPageSound::InitOptions(HWND hWnd)
if (slot == 4 || slot == 5)
continue;
char choices[1000];
GetCardMgr().GetCardChoicesForSlot(slot, &choices[0], choicesList[slot]);
std::string choices;
GetCardMgr().GetCardChoicesForSlot(slot, choices, choicesList[slot]);
int currentChoice = CardTypeToComboItem(slot);
m_PropertySheetHelper.FillComboBox(hWnd, IDC_SLOT0+slot*2, choices, currentChoice);
m_PropertySheetHelper.FillComboBox(hWnd, IDC_SLOT0+slot*2, choices.c_str(), currentChoice);
}
#if 0