mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Restore original thread state
This commit is contained in:
parent
ca55eb50d9
commit
fb21c50fb6
|
@ -618,7 +618,7 @@ windowCallback(HWND wnd, UINT message, WPARAM wParam, LPARAM lParam) {
|
||||||
if (callback) {
|
if (callback) {
|
||||||
/* restore thread state */
|
/* restore thread state */
|
||||||
PyEval_SaveThread();
|
PyEval_SaveThread();
|
||||||
PyThreadState_Swap(threadstate);
|
PyThreadState_Swap(current_threadstate);
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user