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
1 changed files with 1 additions and 1 deletions

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;