| Index: remoting/host/setup/me2me_native_messaging_host.cc
|
| diff --git a/remoting/host/setup/me2me_native_messaging_host.cc b/remoting/host/setup/me2me_native_messaging_host.cc
|
| index e3480b1afc3c493bbc2b0464db4699b05a32d439..7472c243863a1e2135a0e67011dcdd7e317d829f 100644
|
| --- a/remoting/host/setup/me2me_native_messaging_host.cc
|
| +++ b/remoting/host/setup/me2me_native_messaging_host.cc
|
| @@ -584,8 +584,10 @@ void Me2MeNativeMessagingHost::EnsureElevatedHostCreated() {
|
|
|
| // Create a security descriptor that gives full access to the caller and
|
| // denies access by anyone else.
|
| - std::string security_descriptor = base::StringPrintf(
|
| - "O:%1$sG:%1$sD:(A;;GA;;;%1$s)", base::UTF16ToASCII(user_sid).c_str());
|
| + std::string user_sid_ascii = base::UTF16ToASCII(user_sid);
|
| + std::string security_descriptor =
|
| + base::StringPrintf("O:%sG:%sD:(A;;GA;;;%s)", user_sid_ascii.c_str(),
|
| + user_sid_ascii.c_str(), user_sid_ascii.c_str());
|
|
|
| ScopedSd sd = ConvertSddlToSd(security_descriptor);
|
| if (!sd) {
|
|
|