corrected access to NULL parameters in wxGetOsVersion

replaced wxMACINTOSH with wxMAC and wxMAC_DARWIN to differentiate return
value of wxGetOsVersion according to whether Mac paths or Unix paths are used


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-10-31 22:23:58 +00:00
parent a3df447d8b
commit ff8fda3617
5 changed files with 38 additions and 14 deletions

View File

@@ -1503,7 +1503,8 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event )
switch ( wxGetOsVersion() )
{
case wxMOTIF_X: port = _T("Motif"); break;
case wxMACINTOSH: port = _T("Mac"); break;
case wxMAC:
case wxMAC_DARWIN: port = _T("Mac"); break;
case wxBEOS: port = _T("BeOS"); break;
case wxGTK:
case wxGTK_WIN32: