From 4adc71e51aaf4579859fa98ddeac78259f0170ef Mon Sep 17 00:00:00 2001 From: Ratin Gao Date: Thu, 29 Feb 2024 19:50:32 +0800 Subject: [PATCH] Fix DragDropVisuals warnings that are treated as errors --- .../winui/shell/appplatform/DragDropVisuals/ShellHelpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/Win7Samples/winui/shell/appplatform/DragDropVisuals/ShellHelpers.h b/Samples/Win7Samples/winui/shell/appplatform/DragDropVisuals/ShellHelpers.h index d8826e7d..e1ad2eca 100644 --- a/Samples/Win7Samples/winui/shell/appplatform/DragDropVisuals/ShellHelpers.h +++ b/Samples/Win7Samples/winui/shell/appplatform/DragDropVisuals/ShellHelpers.h @@ -118,7 +118,7 @@ __inline HRESULT SetItemImageImageInStaticControl(HWND hwndStatic, IShellItem *p { RECT rc; GetWindowRect(hwndStatic, &rc); - const UINT dxdy = min(rc.right - rc.left, rc.bottom - rc.top); // make it square + LONG dxdy = min(rc.right - rc.left, rc.bottom - rc.top); // make it square const SIZE size = { dxdy, dxdy }; hr = psiif->GetImage(size, SIIGBF_RESIZETOFIT, &hbmp);