Author: greatlrd
Date: Fri Jul 13 02:14:40 2007
New Revision: 27620
URL:
http://svn.reactos.org/svn/reactos?rev=27620&view=rev
Log:
patch from Yaroslav Ponomarenko yarryp at gmail dot com
-------------------------------------------------------
This is a small hack, instead send invaild data we are sending
a hardcode value for few unimplement spi, This solv some problem
with firefox, like icon is not longer gray out, frist time u start
firefox, it also fix some other werid problem,
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/misc.c
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 Fri Jul 13 02:14:40 2007
@@ -954,6 +954,10 @@
switch(uiAction)
{
+ case SPI_GETDRAGFULLWINDOWS:
+ /* FIXME: Implement this, don't just return constant */
+ *(PBOOL)pvParam = FALSE;
+ break;
case SPI_GETKEYBOARDCUES:
case SPI_SETDOUBLECLKWIDTH:
case SPI_SETDOUBLECLKHEIGHT:
@@ -1739,13 +1743,13 @@
}
case SPI_GETNONCLIENTMETRICS:
{
- NONCLIENTMETRICS Buffer;
+ NONCLIENTMETRICSW Buffer;
return UserSystemParametersInfo_StructGet(uiAction, uiParam, pvParam,
fWinIni,
&Buffer,sizeof(Buffer));
}
case SPI_SETNONCLIENTMETRICS:
{
- NONCLIENTMETRICS Buffer;
+ NONCLIENTMETRICSW Buffer;
return UserSystemParametersInfo_StructSet(uiAction, uiParam, pvParam,
fWinIni,
&Buffer,sizeof(Buffer));
}
@@ -1782,30 +1786,6 @@
case SPI_SETFILTERKEYS:
{
FILTERKEYS Buffer;
- return UserSystemParametersInfo_StructSet(uiAction, uiParam, pvParam,
fWinIni,
- &Buffer,sizeof(Buffer));
- }
- case SPI_GETHIGHCONTRAST:
- {
- HIGHCONTRAST Buffer;
- return UserSystemParametersInfo_StructGet(uiAction, uiParam, pvParam,
fWinIni,
- &Buffer,sizeof(Buffer));
- }
- case SPI_SETHIGHCONTRAST:
- {
- HIGHCONTRAST Buffer;
- return UserSystemParametersInfo_StructSet(uiAction, uiParam, pvParam,
fWinIni,
- &Buffer,sizeof(Buffer));
- }
- case SPI_GETSOUNDSENTRY:
- {
- SOUNDSENTRY Buffer;
- return UserSystemParametersInfo_StructGet(uiAction, uiParam, pvParam,
fWinIni,
- &Buffer,sizeof(Buffer));
- }
- case SPI_SETSOUNDSENTRY:
- {
- SOUNDSENTRY Buffer;
return UserSystemParametersInfo_StructSet(uiAction, uiParam, pvParam,
fWinIni,
&Buffer,sizeof(Buffer));
}
@@ -2041,6 +2021,15 @@
}
return( TRUE);
}
+ case SPI_GETHIGHCONTRAST:
+ case SPI_SETHIGHCONTRAST:
+ case SPI_GETSOUNDSENTRY:
+ case SPI_SETSOUNDSENTRY:
+ {
+ /* FIXME: Support this accessibility SPI actions */
+ DPRINT1("FIXME: Unsupported SPI Code: %lx \n",uiAction );
+ break;
+ }
default :
{
SetLastNtError(ERROR_INVALID_PARAMETER);