summaryrefslogtreecommitdiffstats
path: root/remoting/host/pairing_registry_delegate_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/pairing_registry_delegate_win.cc')
-rw-r--r--remoting/host/pairing_registry_delegate_win.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/remoting/host/pairing_registry_delegate_win.cc b/remoting/host/pairing_registry_delegate_win.cc
index c7f11d9..20230d0 100644
--- a/remoting/host/pairing_registry_delegate_win.cc
+++ b/remoting/host/pairing_registry_delegate_win.cc
@@ -83,8 +83,7 @@ bool WriteValue(base::win::RegKey& key,
// presubmit: allow wstring
std::wstring value_json = UTF8ToWide(value_json_utf8);
- LONG result = key.WriteValue(value_name,
- UTF8ToWide(value_json_utf8).c_str());
+ LONG result = key.WriteValue(value_name, value_json.c_str());
if (result != ERROR_SUCCESS) {
SetLastError(result);
PLOG(ERROR) << "Cannot write value '" << value_name << "'";