[REACTOS] Replace remnant legacy SPIF_SENDWININICHANGE by SPIF_SENDCHANGE (#1526)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Sun, 28 Apr 2019 19:19:42 +0000 (21:19 +0200)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Sun, 28 Apr 2019 19:19:42 +0000 (21:19 +0200)
No functional change otherwise.

base/applications/mspaint/registry.cpp
base/system/userinit/livecd.c
dll/win32/uxtheme/system.c
sdk/include/psdk/winuser.h
win32ss/user/ntuser/sysparams.c

index e295530..cd1250b 100644 (file)
@@ -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()
index 6a17bbb..86d3eb7 100644 (file)
@@ -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);
 }
 
 
index 2fb1ac8..eaf8faf 100644 (file)
@@ -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;
index ec8249c..f9ff766 100644 (file)
@@ -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
 
index a325dcc..f07db3a 100644 (file)
@@ -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,