X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4efd805a09f66a9b0213bd8d602f773289fadeb..e75390d4aa51b46b9217dc4699267c1345893054:/src/msw/colordlg.cpp diff --git a/src/msw/colordlg.cpp b/src/msw/colordlg.cpp index 7a52b05e9d..0b8d20706f 100644 --- a/src/msw/colordlg.cpp +++ b/src/msw/colordlg.cpp @@ -77,7 +77,7 @@ wxColourDialogHookProc(HWND hwnd, { CHOOSECOLOR *pCC = (CHOOSECOLOR *)lParam; wxColourDialog * const - dialog = wx_reinterpret_cast(wxColourDialog *, pCC->lCustData); + dialog = reinterpret_cast(pCC->lCustData); const wxString title = dialog->GetTitle(); if ( !title.empty() ) @@ -152,7 +152,9 @@ int wxColourDialog::ShowModal() // occurred const DWORD err = CommDlgExtendedError(); if ( err ) + { wxLogError(_("Colour selection dialog failed with error %0lx."), err); + } return wxID_CANCEL; }