This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix cast in Windows TaskBar

  • Loading branch information...
nlyan committed Sep 12, 2016
1 parent 7e386c0 commit 702f095efda04a8dd1cb1d4c3fbaa81aa200b025
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/arch/win32/ArchTaskBarWindows.cpp
@@ -417,7 +417,7 @@ ArchTaskBarWindows::staticWndProc(HWND hwnd, UINT msg,
createInfo = reinterpret_cast<CREATESTRUCT*>(lParam);
self = static_cast<ArchTaskBarWindows*>(
createInfo->lpCreateParams);
- SetWindowLongPtr(hwnd, 0, self);
+ SetWindowLongPtr(hwnd, 0, reinterpret_cast<LONG_PTR>(createInfo->lpCreateParams));
}
else {
// get the extra window data and forward the call

0 comments on commit 702f095

Please sign in to comment.