2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 21:57:42 +00:00

Use LONG_PTR with SetWindowLongPtr

This commit is contained in:
Ilya Fedin 2020-10-25 04:59:14 +04:00 committed by John Preston
parent b0ce88395f
commit 7ff99cdbf7

View File

@ -252,7 +252,7 @@ void MainWindow::workmodeUpdated(DBIWorkMode mode) {
psSetupTrayIcon();
HWND psOwner = (HWND)GetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT);
if (!psOwner) {
SetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT, (LONG)ps_tbHider_hWnd);
SetWindowLongPtr(ps_hWnd, GWLP_HWNDPARENT, (LONG_PTR)ps_tbHider_hWnd);
}
} break;