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

Unified Diff: cloud_print/service/win/local_security_policy.cc

Issue 1408623002: Add cloud_print to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 2 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
Index: cloud_print/service/win/local_security_policy.cc
diff --git a/cloud_print/service/win/local_security_policy.cc b/cloud_print/service/win/local_security_policy.cc
index 874498d19aeffa652a314d0cc51fedc1c7c30afb..e9830b3c59b871f811290899f032840ab22d9e79 100644
--- a/cloud_print/service/win/local_security_policy.cc
+++ b/cloud_print/service/win/local_security_policy.cc
@@ -109,8 +109,8 @@ bool LocalSecurityPolicy::SetPrivilege(const base::string16& username,
LSA_UNICODE_STRING privilege_string;
base::string16 privilage_copy(privilage);
privilege_string.Buffer = &privilage_copy[0];
- privilege_string.Length = wcslen(privilege_string.Buffer) *
- sizeof(privilege_string.Buffer[0]);
+ privilege_string.Length = static_cast<USHORT>(
+ wcslen(privilege_string.Buffer) * sizeof(privilege_string.Buffer[0]));
privilege_string.MaximumLength = privilege_string.Length +
sizeof(privilege_string.Buffer[0]);
return STATUS_SUCCESS ==

Powered by Google App Engine
This is Rietveld 408576698