Skip to content

Commit

Permalink
fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Apr 4, 2024
1 parent c5311ef commit 3a6343d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions XgGenerative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,24 @@ XgGenerativeDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
// コンボボックスとチェックボックスの状態に応じて音声ファイルを設定する。
ComboBox_GetText(GetDlgItem(hwnd, cmb1), szText, _countof(szText));
if (::IsDlgButtonChecked(hwnd, chx4) == BST_CHECKED && szText[0]) {
StringCchCopyW(xg_aszSoundFiles[0], _countof(xg_aszSoundFiles[0]), szPath);
PathAppendW(xg_aszSoundFiles[0], szText);
if (lstrcmpiW(szText, XgLoadStringDx1(IDS_NONE)) != 0) {
StringCchCopyW(xg_aszSoundFiles[0], _countof(xg_aszSoundFiles[0]), szPath);
PathAppendW(xg_aszSoundFiles[0], szText);
}
}
ComboBox_GetText(GetDlgItem(hwnd, cmb2), szText, _countof(szText));
if (::IsDlgButtonChecked(hwnd, chx5) == BST_CHECKED && szText[0]) {
StringCchCopyW(xg_aszSoundFiles[1], _countof(xg_aszSoundFiles[0]), szPath);
PathAppendW(xg_aszSoundFiles[1], szText);
if (lstrcmpiW(szText, XgLoadStringDx1(IDS_NONE)) != 0) {
StringCchCopyW(xg_aszSoundFiles[1], _countof(xg_aszSoundFiles[0]), szPath);
PathAppendW(xg_aszSoundFiles[1], szText);
}
}
ComboBox_GetText(GetDlgItem(hwnd, cmb3), szText, _countof(szText));
if (::IsDlgButtonChecked(hwnd, chx6) == BST_CHECKED && szText[0]) {
StringCchCopyW(xg_aszSoundFiles[2], _countof(xg_aszSoundFiles[0]), szPath);
PathAppendW(xg_aszSoundFiles[2], szText);
if (lstrcmpiW(szText, XgLoadStringDx1(IDS_NONE)) != 0) {
StringCchCopyW(xg_aszSoundFiles[2], _countof(xg_aszSoundFiles[0]), szPath);
PathAppendW(xg_aszSoundFiles[2], szText);
}
}
}
break;
Expand Down

0 comments on commit 3a6343d

Please sign in to comment.