Author: janderwald
Date: Tue May 29 15:23:31 2007
New Revision: 26935
URL:
http://svn.reactos.org/svn/reactos?rev=26935&view=rev
Log:
- clean up GuiHandleSysMenuCommand a bit
Modified:
trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/guiconsole.c Tue May 29 15:23:31 2007
@@ -1485,10 +1485,10 @@
CPLFunc(hWnd, CPL_DBLCLK, (LPARAM)&SharedInfo, Defaults);
}
-static BOOL FASTCALL
-GuiConsoleHandleSysMenuCommand(HWND hWnd, WPARAM wParam, PGUI_CONSOLE_DATA GuiData)
-{
- BOOL Ret = TRUE;
+static LRESULT FASTCALL
+GuiConsoleHandleSysMenuCommand(HWND hWnd, WPARAM wParam, LPARAM lParam, PGUI_CONSOLE_DATA
GuiData)
+{
+ LRESULT Ret = TRUE;
switch(wParam)
{
@@ -1509,10 +1509,9 @@
break;
default:
- Ret = FALSE;
+ Ret = DefWindowProcW(hWnd, WM_SYSCOMMAND, wParam, lParam);
break;
}
-
return Ret;
}
@@ -1709,8 +1708,7 @@
GuiConsoleMouseMove(hWnd, wParam, lParam);
break;
case WM_SYSCOMMAND:
- if (!GuiConsoleHandleSysMenuCommand(hWnd, wParam, GuiData))
- Result = DefWindowProcW(hWnd, msg, wParam, lParam);
+ Result = GuiConsoleHandleSysMenuCommand(hWnd, wParam, lParam, GuiData);
break;
case WM_SIZE:
GuiConsoleResize(hWnd, wParam, lParam);