Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
NewSaveDialog: Fixed "Attempted an unsupported operation" error.
Browse files Browse the repository at this point in the history
The cause was data exchanges being done on elements that only exist in the old dialog.
  • Loading branch information
CrossVR committed Oct 6, 2012
1 parent dc56845 commit b896561
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/mpc-hc/SaveTextFileDialog.cpp
Expand Up @@ -63,7 +63,9 @@ CSaveTextFileDialog::~CSaveTextFileDialog()

void CSaveTextFileDialog::DoDataExchange(CDataExchange* pDX)
{
DDX_Control(pDX, IDC_COMBO1, m_encoding);
if (!SysVersion::IsVistaOrLater()) {
DDX_Control(pDX, IDC_COMBO1, m_encoding);
}
__super::DoDataExchange(pDX);
}

Expand Down
8 changes: 5 additions & 3 deletions src/mpc-hc/SaveThumbnailsDialog.cpp
Expand Up @@ -72,9 +72,11 @@ CSaveThumbnailsDialog::~CSaveThumbnailsDialog()

void CSaveThumbnailsDialog::DoDataExchange(CDataExchange* pDX)
{
DDX_Control(pDX, IDC_SPIN1, m_rowsctrl);
DDX_Control(pDX, IDC_SPIN2, m_colsctrl);
DDX_Control(pDX, IDC_SPIN3, m_widthctrl);
if (!SysVersion::IsVistaOrLater()) {
DDX_Control(pDX, IDC_SPIN1, m_rowsctrl);
DDX_Control(pDX, IDC_SPIN2, m_colsctrl);
DDX_Control(pDX, IDC_SPIN3, m_widthctrl);
}
__super::DoDataExchange(pDX);
}

Expand Down

0 comments on commit b896561

Please sign in to comment.