Commit 12773195 authored by gab@chromium.org's avatar gab@chromium.org

Do not specify SHCNF_FLUSHNOWAIT on SHChangeNotify after updating shortcuts.

Specifying it seems to push Windows to clear its cache before the changes to the shortcut have actually gone in.

This results in losing Metro properties when the shortcut is modified on Windows 8.

BUG=136567
TEST=Over-install my custom 22.0.1200.0 build over 21.0.1180.15 beta-m (when its default) and make sure the shortcut keeps its Metro properties (I've confirmed many times that it doesn't on the same custom build without my fix).


Review URL: https://chromiumcodereview.appspot.com/10692138

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145987 0039d316-1c4b-4281-b951-d872f2087c98
parent 254ce9f7
...@@ -438,8 +438,7 @@ bool CreateOrUpdateShortcutLink(const wchar_t *source, ...@@ -438,8 +438,7 @@ bool CreateOrUpdateShortcutLink(const wchar_t *source,
i_persist_file.Release(); i_persist_file.Release();
i_shell_link.Release(); i_shell_link.Release();
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST | SHCNF_FLUSHNOWAIT, SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
NULL, NULL);
} }
return SUCCEEDED(result); return SUCCEEDED(result);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment