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 e9830b3c59b871f811290899f032840ab22d9e79..874498d19aeffa652a314d0cc51fedc1c7c30afb 100644 |
--- a/cloud_print/service/win/local_security_policy.cc |
+++ b/cloud_print/service/win/local_security_policy.cc |
@@ -109,8 +109,8 @@ |
LSA_UNICODE_STRING privilege_string; |
base::string16 privilage_copy(privilage); |
privilege_string.Buffer = &privilage_copy[0]; |
- privilege_string.Length = static_cast<USHORT>( |
- wcslen(privilege_string.Buffer) * sizeof(privilege_string.Buffer[0])); |
+ privilege_string.Length = wcslen(privilege_string.Buffer) * |
+ sizeof(privilege_string.Buffer[0]); |
privilege_string.MaximumLength = privilege_string.Length + |
sizeof(privilege_string.Buffer[0]); |
return STATUS_SUCCESS == |