mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Use SetWindowLongPtr instead of SetWindowLong
This commit is contained in:
parent
8b70b2fb79
commit
4e981b2ef6
|
@ -735,8 +735,8 @@ PyImaging_CreateWindowWin32(PyObject* self, PyObject* args)
|
|||
|
||||
/* register window callback */
|
||||
Py_INCREF(callback);
|
||||
SetWindowLong(wnd, 0, (LONG) callback);
|
||||
SetWindowLong(wnd, sizeof(callback), (LONG) PyThreadState_Get());
|
||||
SetWindowLongPtr(wnd, 0, (LONG_PTR) callback);
|
||||
SetWindowLongPtr(wnd, sizeof(callback), (LONG_PTR) PyThreadState_Get());
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
ShowWindow(wnd, SW_SHOWNORMAL);
|
||||
|
|
Loading…
Reference in New Issue
Block a user