Revert SPI_SETMOUSEBUTTONSWAP changes.
This commit is contained in:
parent
8fefccd67f
commit
a2b2456b99
|
@ -1467,18 +1467,18 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
|
|||
{
|
||||
WCHAR buf[5];
|
||||
spi_idx = SPI_SETMOUSEBUTTONSWAP_IDX;
|
||||
|
||||
wsprintfW(buf, CSu, uiParam);
|
||||
/* MSDN says it returns previous state of swapbutton always */
|
||||
ret = sysMetrics[SM_SWAPBUTTON];
|
||||
if (SYSPARAMS_Save( SPI_SETMOUSEBUTTONSWAP_REGKEY,
|
||||
SPI_SETMOUSEBUTTONSWAP_VALNAME,
|
||||
buf, fWinIni ))
|
||||
{
|
||||
sysMetrics[SM_SWAPBUTTON] = uiParam;
|
||||
spi_loaded[spi_idx] = TRUE;
|
||||
SYSPARAMS_NotifyChange( uiAction, fWinIni );
|
||||
}
|
||||
return ret;
|
||||
else
|
||||
ret = FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
WINE_SPI_FIXME(SPI_SETICONTITLELOGFONT); /* 34 */
|
||||
|
|
|
@ -1010,7 +1010,7 @@ static void test_SPI_SETMOUSEBUTTONSWAP( void ) /* 33 */
|
|||
SetLastError(0xdeadbeef);
|
||||
rc=SystemParametersInfoA( SPI_SETMOUSEBUTTONSWAP, vals[i], 0,
|
||||
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE );
|
||||
if (!test_error_msg(rc!=vals[i],"SPI_{GET,SET}MOUSEBUTTONSWAP"))
|
||||
if (!test_error_msg(rc,"SPI_{GET,SET}MOUSEBUTTONSWAP"))
|
||||
return;
|
||||
|
||||
test_change_message( SPI_SETMOUSEBUTTONSWAP, 0 );
|
||||
|
@ -1023,7 +1023,7 @@ static void test_SPI_SETMOUSEBUTTONSWAP( void ) /* 33 */
|
|||
|
||||
rc=SystemParametersInfoA( SPI_SETMOUSEBUTTONSWAP, old_b, 0,
|
||||
SPIF_UPDATEINIFILE );
|
||||
ok(!rc,"***warning*** failed to restore the original value: rc=%d err=%ld\n",rc,GetLastError());
|
||||
ok(rc!=0,"***warning*** failed to restore the original value: rc=%d err=%ld\n",rc,GetLastError());
|
||||
}
|
||||
|
||||
static void test_SPI_SETFASTTASKSWITCH( void ) /* 36 */
|
||||
|
|
Loading…
Reference in New Issue