https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cf48f8bf8a6711a521637…
commit cf48f8bf8a6711a521637881f2f50e017d18051d
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Sun Apr 28 21:19:42 2019 +0200
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Apr 28 21:19:42 2019 +0200
[REACTOS] Replace remnant legacy SPIF_SENDWININICHANGE by SPIF_SENDCHANGE (#1526)
No functional change otherwise.
---
base/applications/mspaint/registry.cpp | 2 +-
base/system/userinit/livecd.c | 2 +-
dll/win32/uxtheme/system.c | 2 +-
sdk/include/psdk/winuser.h | 2 +-
win32ss/user/ntuser/sysparams.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/base/applications/mspaint/registry.cpp
b/base/applications/mspaint/registry.cpp
index e2955302d9..cd1250b239 100644
--- a/base/applications/mspaint/registry.cpp
+++ b/base/applications/mspaint/registry.cpp
@@ -46,7 +46,7 @@ void RegistrySettings::SetWallpaper(LPCTSTR szFileName,
RegistrySettings::Wallpa
desktop.SetStringValue(_T("TileWallpaper"), (style ==
RegistrySettings::TILED) ? _T("1") : _T("0"));
}
- SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) szFileName, SPIF_UPDATEINIFILE
| SPIF_SENDWININICHANGE);
+ SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) szFileName, SPIF_UPDATEINIFILE
| SPIF_SENDCHANGE);
}
void RegistrySettings::LoadPresets()
diff --git a/base/system/userinit/livecd.c b/base/system/userinit/livecd.c
index 6a17bbb797..86d3eb70fc 100644
--- a/base/system/userinit/livecd.c
+++ b/base/system/userinit/livecd.c
@@ -301,7 +301,7 @@ SetKeyboardLayout(
swprintf(szLayoutId, L"%08lx", ulLayoutId);
hKl = LoadKeyboardLayoutW(szLayoutId, KLF_ACTIVATE | KLF_REPLACELANG |
KLF_SETFORPROCESS);
- SystemParametersInfoW(SPI_SETDEFAULTINPUTLANG, 0, &hKl, SPIF_SENDWININICHANGE);
+ SystemParametersInfoW(SPI_SETDEFAULTINPUTLANG, 0, &hKl, SPIF_SENDCHANGE);
}
diff --git a/dll/win32/uxtheme/system.c b/dll/win32/uxtheme/system.c
index 2fb1ac8b5a..eaf8faf924 100644
--- a/dll/win32/uxtheme/system.c
+++ b/dll/win32/uxtheme/system.c
@@ -473,7 +473,7 @@ static void UXTHEME_RestoreSystemMetrics(void)
/* Make system settings persistent, so they're in effect even w/o uxtheme
* loaded.
* For efficiency reasons, only the last SystemParametersInfoW sets
- * SPIF_SENDWININICHANGE */
+ * SPIF_SENDCHANGE */
static void UXTHEME_SaveSystemMetrics(void)
{
const struct BackupSysParam* bsp = backupSysParams;
diff --git a/sdk/include/psdk/winuser.h b/sdk/include/psdk/winuser.h
index ec8249cddf..f9ff766a2a 100644
--- a/sdk/include/psdk/winuser.h
+++ b/sdk/include/psdk/winuser.h
@@ -1551,8 +1551,8 @@ extern "C" {
#endif
#define SPIF_UPDATEINIFILE 1
-#define SPIF_SENDWININICHANGE 2
#define SPIF_SENDCHANGE 2
+#define SPIF_SENDWININICHANGE SPIF_SENDCHANGE
#define ATF_ONOFFFEEDBACK 2
#define ATF_TIMEOUTON 1
diff --git a/win32ss/user/ntuser/sysparams.c b/win32ss/user/ntuser/sysparams.c
index a325dcc672..f07db3aab2 100644
--- a/win32ss/user/ntuser/sysparams.c
+++ b/win32ss/user/ntuser/sysparams.c
@@ -2107,7 +2107,7 @@ UserSystemParametersInfo(
InitMetrics();
/* Send notification to toplevel windows, if requested */
- if (fWinIni & (SPIF_SENDCHANGE | SPIF_SENDWININICHANGE))
+ if (fWinIni & SPIF_SENDCHANGE)
{
/* Send WM_SETTINGCHANGE to all toplevel windows */
co_IntSendMessageTimeout(HWND_BROADCAST,