summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/bandctrlimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryStats/src/bandctrlimpl.cpp')
-rw-r--r--plugins/HistoryStats/src/bandctrlimpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/HistoryStats/src/bandctrlimpl.cpp b/plugins/HistoryStats/src/bandctrlimpl.cpp
index dd9b28dead..8445debf64 100644
--- a/plugins/HistoryStats/src/bandctrlimpl.cpp
+++ b/plugins/HistoryStats/src/bandctrlimpl.cpp
@@ -19,12 +19,12 @@ LRESULT CALLBACK BandCtrlImpl::staticWndProc(HWND hWnd, UINT msg, WPARAM wParam,
switch (msg) {
case WM_NCCREATE:
pCtrl = new BandCtrlImpl(hWnd, reinterpret_cast<int>(reinterpret_cast<CREATESTRUCT*>(lParam)->hMenu));
- SetWindowLong(hWnd, 0, reinterpret_cast<LONG>(pCtrl));
+ SetWindowLongPtr(hWnd, 0, reinterpret_cast<LONG_PTR>(pCtrl));
return TRUE;
case WM_DESTROY:
delete pCtrl;
- SetWindowLong(hWnd, 0, 0);
+ SetWindowLongPtr(hWnd, 0, 0);
return 0;
case WM_GETDLGCODE: