Index: chrome/installer/util/delete_after_reboot_helper.cc |
=================================================================== |
--- chrome/installer/util/delete_after_reboot_helper.cc (revision 67529) |
+++ chrome/installer/util/delete_after_reboot_helper.cc (working copy) |
@@ -244,6 +244,13 @@ |
DWORD length = GetShortPathName(path, WriteInto(&short_path, MAX_PATH), |
MAX_PATH); |
DLOG_IF(WARNING, length == 0) << __FUNCTION__ << " gle=" << GetLastError(); |
+ if (length == 0) { |
+ // GetShortPathName fails if the path is no longer present. Instead of |
+ // returning an empty string, just return the original string. This will |
+ // serve for our purposes. |
+ return path; |
+ } |
+ |
short_path.resize(length); |
return short_path; |
} |