Update the last-modified time of modified PE files.
Windows does not necessarily change the last-modified time of files that are modified via a r/w file mapping. This CL explicitly sets the last-modified time on PE files (.exes and .dlls) modified by alternate_version_generator.exe. This is significant because it appears that the Windows loader does some caching of data about an .exe and doesn't flush this cache if a new file with the same last-modified time as an old file appears. This caused Chrome launches to fail with STATUS_OBJECT_NAME_NOT_FOUND (0xC0000034). BUG=461856 R=huangs@chromium.org, mmeade@chromium.org Change-Id: Ic0e0f68ef9ca62e02bb828267352c2f7052ff908 Reviewed-on: https://chromium-review.googlesource.com/1009705 Commit-Queue: Greg Thompson <grt@chromium.org> Reviewed-by:Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#550532}
Showing
Please register or sign in to comment