#4978 Replaced the superseded SetWindowLong API

This commit is contained in:
Jerry (Xinyu Hou) 2016-06-23 19:36:54 +01:00
parent 454bf4dc5f
commit d37d3e8944
1 changed files with 2 additions and 2 deletions

View File

@ -417,11 +417,11 @@ ArchTaskBarWindows::staticWndProc(HWND hwnd, UINT msg,
createInfo = reinterpret_cast<CREATESTRUCT*>(lParam);
self = reinterpret_cast<ArchTaskBarWindows*>(
createInfo->lpCreateParams);
SetWindowLong(hwnd, 0, reinterpret_cast<LONG>(self));
SetWindowLongPtr(hwnd, 0, reinterpret_cast<LONG_PTR>(self));
}
else {
// get the extra window data and forward the call
LONG data = GetWindowLong(hwnd, 0);
LONG_PTR data = GetWindowLongPtr(hwnd, 0);
if (data != 0) {
self = reinterpret_cast<ArchTaskBarWindows*>(
reinterpret_cast<void*>(data));