Index: remoting/host/win/security_descriptor.cc |
diff --git a/remoting/host/win/security_descriptor.cc b/remoting/host/win/security_descriptor.cc |
index fffefe5b73ace5868829cadb19bcc3d9c050fb3f..c316ff7f18526e22fdb1abe521e4345a8eda8ac1 100644 |
--- a/remoting/host/win/security_descriptor.cc |
+++ b/remoting/host/win/security_descriptor.cc |
@@ -24,7 +24,7 @@ ScopedSd ConvertSddlToSd(const std::string& sddl) { |
memcpy(sd.get(), raw_sd, length); |
LocalFree(raw_sd); |
- return sd.Pass(); |
+ return sd; |
} |
// Converts a SID into a text string. |
@@ -59,7 +59,7 @@ ScopedSid GetLogonSid(HANDLE token) { |
if (!CopySid(length, logon_sid.get(), groups->Groups[i].Sid)) |
return ScopedSid(); |
- return logon_sid.Pass(); |
+ return logon_sid; |
} |
} |