From b4453b4b437c477f3e46892e592bc7b8eb4faa10 Mon Sep 17 00:00:00 2001 From: Joachim Henze Date: Tue, 29 Mar 2022 02:27:36 +0200 Subject: [PATCH] [0.4.7][WIN32K:NTUSER] Fix 4 MSVC2010SP1 x86 dbg warnings C4146 CORE-18104 can be observed with MSVC 2010SP1 (16.0.40219.1) x86 target in dbg configuation: C:\047rls\reactos\win32ss\user\ntuser\nonclient.c(823) : warning C4146: unary minus operator applied to unsigned type, result still unsigned C:\047rls\reactos\win32ss\user\ntuser\nonclient.c(824) : warning C4146: unary minus operator applied to unsigned type, result still unsigned C:\047rls\reactos\win32ss\user\ntuser\nonclient.c(826) : warning C4146: unary minus operator applied to unsigned type, result still unsigned C:\047rls\reactos\win32ss\user\ntuser\nonclient.c(826) : warning C4146: unary minus operator applied to unsigned type, result still unsigned partial pick of 0.4.9-dev-295-g 2d9c88e0c5f0c8fc24612579659a57690e0560bf --- win32ss/user/ntuser/nonclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32ss/user/ntuser/nonclient.c b/win32ss/user/ntuser/nonclient.c index 392ad26eb2b..ce977704f71 100644 --- a/win32ss/user/ntuser/nonclient.c +++ b/win32ss/user/ntuser/nonclient.c @@ -808,8 +808,8 @@ NC_DrawFrame( HDC hDC, RECT *CurrentRect, BOOL Active, DWORD Style, DWORD ExStyl /* Now the other bit of the frame */ if (Style & (WS_DLGFRAME | WS_BORDER) || ExStyle & WS_EX_DLGMODALFRAME) { - DWORD Width = UserGetSystemMetrics(SM_CXBORDER); - DWORD Height = UserGetSystemMetrics(SM_CYBORDER); + LONG Width = UserGetSystemMetrics(SM_CXBORDER); + LONG Height = UserGetSystemMetrics(SM_CYBORDER); NtGdiSelectBrush(hDC, IntGetSysColorBrush( (ExStyle & (WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE)) ? COLOR_3DFACE :