From cfb795c23cdb27350b10d3aa1f290ceae07a696c Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Sun, 6 Dec 2020 04:11:27 +0100 Subject: [PATCH] gsdx: Warnings cleanup. --- plugins/GSdx/Window/GSDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/Window/GSDialog.cpp b/plugins/GSdx/Window/GSDialog.cpp index 86ad09db7b..967ff26e47 100644 --- a/plugins/GSdx/Window/GSDialog.cpp +++ b/plugins/GSdx/Window/GSDialog.cpp @@ -71,7 +71,7 @@ INT_PTR CALLBACK GSDialog::DialogProc(HWND hWnd, UINT message, WPARAM wParam, LP if (((LPNMHDR)lParam)->code == TTN_GETDISPINFO) { LPNMTTDISPINFO pInfo = (LPNMTTDISPINFO)lParam; - UINT id = GetWindowLongPtr((HWND)pInfo->hdr.idFrom, GWL_ID); + const UINT id = (UINT)GetWindowLongPtr((HWND)pInfo->hdr.idFrom, GWL_ID); // lpszText is used only if hinst is NULL. Seems to be NULL already, // but it can't hurt to explicitly set it. @@ -227,7 +227,7 @@ bool GSDialog::ComboBoxGetSelData(UINT id, INT_PTR& data) { HWND hWnd = GetDlgItem(m_hWnd, id); - int item = SendMessage(hWnd, CB_GETCURSEL, 0, 0); + const int item = (int)SendMessage(hWnd, CB_GETCURSEL, 0, 0); if(item >= 0) {