Author: tkreuzer
Date: Tue Aug 28 20:24:55 2012
New Revision: 57194

URL: http://svn.reactos.org/svn/reactos?rev=57194&view=rev
Log:
[USER32]
Use LONG instead of DWORD for a signed value

Modified:
    trunk/reactos/win32ss/user/user32/windows/nonclient.c

Modified: trunk/reactos/win32ss/user/user32/windows/nonclient.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/windows/nonclient.c?rev=57194&r1=57193&r2=57194&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/nonclient.c [iso-8859-1] 
(original)
+++ trunk/reactos/win32ss/user/user32/windows/nonclient.c [iso-8859-1] Tue Aug 
28 20:24:55 2012
@@ -216,7 +216,7 @@
       {
           HMENU hSysMenu = GetSystemMenu(hWnd, FALSE);
           UINT MenuState = GetMenuState(hSysMenu, SC_CLOSE, MF_BYCOMMAND); /* 
in case of error MenuState==0xFFFFFFFF */
-          
+
          /* FIXME: A tool window has a smaller Close button */
 
          if (ExStyle & WS_EX_TOOLWINDOW)
@@ -336,10 +336,10 @@
    /* Firstly the "thick" frame */
    if ((Style & WS_THICKFRAME) && !(Style & WS_MINIMIZE))
    {
-      DWORD Width =
+      LONG Width =
          (GetSystemMetrics(SM_CXFRAME) - GetSystemMetrics(SM_CXDLGFRAME)) *
          GetSystemMetrics(SM_CXBORDER);
-      DWORD Height =
+      LONG Height =
          (GetSystemMetrics(SM_CYFRAME) - GetSystemMetrics(SM_CYDLGFRAME)) *
          GetSystemMetrics(SM_CYBORDER);
 
@@ -661,7 +661,7 @@
   /* Lotus Notes draws menu descriptions in the caption of its main
    * window. When it wants to restore original "system" view, it just
    * sends WM_NCACTIVATE message to itself. Any optimizations here in
-   * attempt to minimize redrawings lead to a not restored caption.   
+   * attempt to minimize redrawings lead to a not restored caption.
    */
    if (wParam)
       NtUserxSetWindowState(Wnd, WNDSACTIVEFRAME);


Reply via email to