Author: greatlrd
Date: Mon Jul 10 19:02:43 2006
New Revision: 22998
URL:
http://svn.reactos.org/svn/reactos?rev=22998&view=rev
Log:
Fixing a small bug, value where never devliver from SPI and that did make screensaver
start direcky and start mulitetimes.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/input.c
trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/input.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/input.c Mon Jul 10 19:02:43 2006
@@ -217,8 +217,9 @@
{
BOOL nPreviousState = FALSE;
DPRINT1("Keyboard and Mouse TimeOut Starting Screen Saver ...\n");
- DPRINT1("Keyboard Timeout counter was
%I64d\n",DiffTimeKeyboard.QuadPart);
- DPRINT1("Mouse Timeout counter was
%I64d\n",DiffTimeMouse.QuadPart);
+ DPRINT1(" %I64d Keyboard Timeout
Value\n",DiffTimeKeyboard.QuadPart);
+ DPRINT1(" %I64d Mouse Timeout Value \n",DiffTimeMouse.QuadPart);
+ DPRINT1(" %I64d TimeOut \n",DiffTimeMouse.QuadPart);
CSR_API_MESSAGE Request;
CsrInit();
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/misc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/misc.c Mon Jul 10 19:02:43 2006
@@ -1016,34 +1016,42 @@
switch(uiAction)
{
case SPI_GETFLATMENU:
- if (pvParam != NULL) *((UINT*)pvParam) = WinStaObject->FlatMenu;
- return TRUE;
+ if (pvParam != NULL) *((UINT*)pvParam) = WinStaObject->FlatMenu;
+ return TRUE;
+ break;
case SPI_SETFLATMENU:
WinStaObject->FlatMenu = uiParam;
- break;
+ return TRUE;
+ break;
case SPI_GETSCREENSAVETIMEOUT:
if (pvParam != NULL) *((UINT*)pvParam) = WinStaObject->ScreenSaverTimeOut;
return TRUE;
+ break;
case SPI_SETSCREENSAVETIMEOUT:
- WinStaObject->ScreenSaverTimeOut = uiParam;
- return TRUE;
+ WinStaObject->ScreenSaverTimeOut = uiParam;
+ return TRUE;
+ break;
case SPI_GETSCREENSAVERRUNNING:
if (pvParam != NULL) *((BOOL*)pvParam) =
WinStaObject->ScreenSaverRunning;
- return TRUE;
+ return TRUE;
+ break;
case SPI_SETSCREENSAVERRUNNING:
if (pvParam != NULL) *((BOOL*)pvParam) = WinStaObject->ScreenSaverRunning;
WinStaObject->ScreenSaverRunning = uiParam;
- return TRUE;
+ return TRUE;
+ break;
case SPI_GETWHEELSCROLLLINES:
CurInfo = IntGetSysCursorInfo(WinStaObject);
if (pvParam != NULL) *((UINT*)pvParam) = CurInfo->WheelScroLines;
/* FIXME add this value to scroll list as scroll value ?? */
return TRUE;
+ break;
case SPI_GETWHEELSCROLLCHARS:
CurInfo = IntGetSysCursorInfo(WinStaObject);
if (pvParam != NULL) *((UINT*)pvParam) = CurInfo->WheelScroChars;
// FIXME add this value to scroll list as scroll value ??
return TRUE;
+ break;
case SPI_SETDOUBLECLKWIDTH:
CurInfo = IntGetSysCursorInfo(WinStaObject);
/* FIXME limit the maximum value? */