X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/954f4710faf80c657d5e40fd6c96773588c17937..28be2e8a170979d476a5ea4f585505b8a2f5af27:/src/msw/filedlg.cpp diff --git a/src/msw/filedlg.cpp b/src/msw/filedlg.cpp index b64a9f842c..805374a8e9 100644 --- a/src/msw/filedlg.cpp +++ b/src/msw/filedlg.cpp @@ -329,8 +329,8 @@ int wxFileDialog::ShowModal() //== Execute FileDialog >>================================================= - bool success = (m_dialogStyle & wxSAVE) ? (GetSaveFileName(&of) != 0) - : (GetOpenFileName(&of) != 0); + bool success = (m_dialogStyle & wxSAVE ? GetSaveFileName(&of) + : GetOpenFileName(&of)) != 0; DWORD errCode = CommDlgExtendedError();