Skip to content

Commit 89a3b8f

Browse files
authored
[SHELL32] Refresh SHELLSTATE before writing it (reactos#7516)
1 parent 096a551 commit 89a3b8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dll/win32/shell32/wine/shellord.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
279279
if (bSet)
280280
{
281281
DWORD changed = 0;
282+
if (dwMask & ~g_CachedSSF)
283+
{
284+
SHELLSTATE tempstate;
285+
SHGetSetSettings(&tempstate, dwMask, FALSE); // Read entries that are not in g_CachedSSF
286+
}
282287

283288
#define SHGSS_WriteAdv(name, value, SSF) \
284289
do { \

0 commit comments

Comments
 (0)