Skip to content

Commit

Permalink
Fix the .7b file type description in "Open file" dialog is random cha…
Browse files Browse the repository at this point in the history
…racters issue mentioned in #11. (Thanks to kanren3 and prakharb5.)
  • Loading branch information
MouriNaruto committed Feb 13, 2025
1 parent d70aad9 commit 1c4f4aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion NanaBox/NewVirtualHardDiskPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace winrt::NanaBox::implementation
Flags |= FOS_DONTADDTORECENT;
winrt::check_hresult(FileDialog->SetOptions(Flags));

static constexpr COMDLG_FILTERSPEC SupportedFileTypes[] =
COMDLG_FILTERSPEC SupportedFileTypes[] =
{
{ L"VHDX (*.vhdx)", L"*.vhdx" },
{ L"VHD (*.vhd)", L"*.vhd" }
Expand Down
8 changes: 4 additions & 4 deletions NanaBox/QuickStartPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace winrt::NanaBox::implementation
L"QuickStartPage/ConfigurationFileTypeName",
L"[NanaBox Virtual Machine Configuration]").c_str());

static COMDLG_FILTERSPEC SupportedFileTypes[] =
COMDLG_FILTERSPEC SupportedFileTypes[] =
{
{
FileTypeName.c_str(),
Expand Down Expand Up @@ -159,7 +159,7 @@ namespace winrt::NanaBox::implementation
Flags |= FOS_DONTADDTORECENT;
winrt::check_hresult(FileDialog->SetOptions(Flags));

static constexpr COMDLG_FILTERSPEC SupportedFileTypes[] =
COMDLG_FILTERSPEC SupportedFileTypes[] =
{
{ L"ISO (*.iso)", L"*.iso" }
};
Expand Down Expand Up @@ -213,7 +213,7 @@ namespace winrt::NanaBox::implementation
Flags |= FOS_DONTADDTORECENT;
winrt::check_hresult(FileDialog->SetOptions(Flags));

static constexpr COMDLG_FILTERSPEC SupportedFileTypes[] =
COMDLG_FILTERSPEC SupportedFileTypes[] =
{
{ L"VHDX (*.vhdx)", L"*.vhdx" },
{ L"VHD (*.vhd)", L"*.vhd" }
Expand Down Expand Up @@ -275,7 +275,7 @@ namespace winrt::NanaBox::implementation
L"QuickStartPage/ConfigurationFileTypeName",
L"[NanaBox Virtual Machine Configuration]").c_str());

static COMDLG_FILTERSPEC SupportedFileTypes[] =
COMDLG_FILTERSPEC SupportedFileTypes[] =
{
{
FileTypeName.c_str(),
Expand Down
2 changes: 1 addition & 1 deletion NanaBox/ResizeVirtualHardDiskPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace winrt::NanaBox::implementation
Flags |= FOS_DONTADDTORECENT;
winrt::check_hresult(FileDialog->SetOptions(Flags));

static constexpr COMDLG_FILTERSPEC SupportedFileTypes[] =
COMDLG_FILTERSPEC SupportedFileTypes[] =
{
{ L"VHDX (*.vhdx)", L"*.vhdx" },
{ L"VHD (*.vhd)", L"*.vhd" }
Expand Down
2 changes: 1 addition & 1 deletion NanaBox/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ winrt::handle ShowCompactVirtualHardDiskDialog(
Flags |= FOS_DONTADDTORECENT;
winrt::check_hresult(FileDialog->SetOptions(Flags));

static constexpr COMDLG_FILTERSPEC SupportedFileTypes[] =
COMDLG_FILTERSPEC SupportedFileTypes[] =
{
{ L"VHDX (*.vhdx)", L"*.vhdx" },
{ L"VHD (*.vhd)", L"*.vhd" }
Expand Down

0 comments on commit 1c4f4aa

Please sign in to comment.