X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5917d04127f414f0c2cd400581cb1c47395a3479..09d48154cc6fb22aa7dcee9fe49b5a9366ff93ca:/wxPython/src/msw/_core_wrap.cpp diff --git a/wxPython/src/msw/_core_wrap.cpp b/wxPython/src/msw/_core_wrap.cpp index c6a7b1bc0d..f6942a7b45 100644 --- a/wxPython/src/msw/_core_wrap.cpp +++ b/wxPython/src/msw/_core_wrap.cpp @@ -41297,6 +41297,7 @@ SWIGINTERN PyObject *_wrap_Window_FromHWND(PyObject *SWIGUNUSEDPARM(self), PyObj } arg2 = static_cast< unsigned long >(val2); { + if (!wxPyCheckForApp()) SWIG_fail; PyThreadState* __tstate = wxPyBeginAllowThreads(); result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); wxPyEndAllowThreads(__tstate);