Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5492)

Unified Diff: chrome/installer/mini_installer/mini_installer.cc

Issue 1662683002: Fix compile error for gn build of mini_installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nullptr -> NULL Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/mini_installer/mini_installer.cc
diff --git a/chrome/installer/mini_installer/mini_installer.cc b/chrome/installer/mini_installer/mini_installer.cc
index f3d7260dd40a03f4d2b8777238a181921e820f4d..6147667fde67d5f29bcfd81a8e7385a756522992 100644
--- a/chrome/installer/mini_installer/mini_installer.cc
+++ b/chrome/installer/mini_installer/mini_installer.cc
@@ -526,9 +526,11 @@ void DeleteExtractedFiles(const wchar_t* base_path,
bool IsAclSupportedForPath(const wchar_t* path) {
PathString volume;
DWORD flags = 0;
- return ::GetVolumePathName(path, volume.get(), volume.capacity()) &&
- ::GetVolumeInformation(volume.get(), NULL, 0, NULL, NULL, &flags,
- NULL, 0) && (flags & FILE_PERSISTENT_ACLS);
+ return ::GetVolumePathName(path, volume.get(),
+ static_cast<DWORD>(volume.capacity())) &&
+ ::GetVolumeInformation(volume.get(), NULL, 0, NULL, NULL, &flags, NULL,
+ 0) &&
+ (flags & FILE_PERSISTENT_ACLS);
}
// Retrieves the SID of the default owner for objects created by this user
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698