Use SetWindowLongPtr instead of SetWindowLong

This commit is contained in:
Christoph Gohlke 2013-02-13 19:10:28 -08:00
parent 8b70b2fb79
commit 4e981b2ef6

View File

@ -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);