mirror of
https://github.com/reactos/reactos.git
synced 2024-09-20 17:51:53 +00:00
[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 2d9c88e0c5
This commit is contained in:
parent
35903bc456
commit
b4453b4b43
|
@ -808,8 +808,8 @@ NC_DrawFrame( HDC hDC, RECT *CurrentRect, BOOL Active, DWORD Style, DWORD ExStyl
|
||||||
/* Now the other bit of the frame */
|
/* Now the other bit of the frame */
|
||||||
if (Style & (WS_DLGFRAME | WS_BORDER) || ExStyle & WS_EX_DLGMODALFRAME)
|
if (Style & (WS_DLGFRAME | WS_BORDER) || ExStyle & WS_EX_DLGMODALFRAME)
|
||||||
{
|
{
|
||||||
DWORD Width = UserGetSystemMetrics(SM_CXBORDER);
|
LONG Width = UserGetSystemMetrics(SM_CXBORDER);
|
||||||
DWORD Height = UserGetSystemMetrics(SM_CYBORDER);
|
LONG Height = UserGetSystemMetrics(SM_CYBORDER);
|
||||||
|
|
||||||
NtGdiSelectBrush(hDC, IntGetSysColorBrush(
|
NtGdiSelectBrush(hDC, IntGetSysColorBrush(
|
||||||
(ExStyle & (WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE)) ? COLOR_3DFACE :
|
(ExStyle & (WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE)) ? COLOR_3DFACE :
|
||||||
|
|
Loading…
Reference in a new issue