diff --git a/wxPython/src/_sound.i b/wxPython/src/_sound.i index c91c6a91eb..f00622cb77 100644 --- a/wxPython/src/_sound.i +++ b/wxPython/src/_sound.i @@ -96,6 +96,7 @@ public: PyErr_SetString(PyExc_NotImplementedError, "Create from data is not available on this platform."); wxPyEndBlockThreads(); + return False; } } #endif diff --git a/wxPython/src/mac/misc_wrap.cpp b/wxPython/src/mac/misc_wrap.cpp index bf5a8c27be..2df44bb2a9 100644 --- a/wxPython/src/mac/misc_wrap.cpp +++ b/wxPython/src/mac/misc_wrap.cpp @@ -717,6 +717,7 @@ bool wxSound_Create__SWIG_1(wxSound *self,int size,wxByte const *data){ PyErr_SetString(PyExc_NotImplementedError, "Create from data is not available on this platform."); wxPyEndBlockThreads(); + return False; } void Sound_Stop(){}