From a7b111f5503e216bbcbb3c0070c2ff2fa112aa34 Mon Sep 17 00:00:00 2001 From: He Yang <1160386205@qq.com> Date: Thu, 7 May 2020 17:08:08 +0800 Subject: [PATCH] [RAPPS] 64bit compatibility fix (#2748) Change SetWindowLongW to SetWindowLongPtrW. It's the same (because the value is 0) but I think it's better. --- base/applications/rapps/loaddlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/applications/rapps/loaddlg.cpp b/base/applications/rapps/loaddlg.cpp index b40d69288f7..69d4ecdc93b 100644 --- a/base/applications/rapps/loaddlg.cpp +++ b/base/applications/rapps/loaddlg.cpp @@ -404,7 +404,7 @@ INT_PTR CALLBACK CDownloadManager::DownloadDlgProc(HWND Dlg, UINT uMsg, WPARAM w SendMessageW(Dlg, WM_SETICON, ICON_SMALL, (LPARAM) hIconSm); } - SetWindowLongW(Dlg, GWLP_USERDATA, 0); + SetWindowLongPtrW(Dlg, GWLP_USERDATA, 0); HWND Item = GetDlgItem(Dlg, IDC_DOWNLOAD_PROGRESS); if (Item) {