diff options
Diffstat (limited to 'rlz/win')
-rw-r--r-- | rlz/win/lib/registry_util.cc | 4 | ||||
-rw-r--r-- | rlz/win/lib/rlz_value_store_registry.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/rlz/win/lib/registry_util.cc b/rlz/win/lib/registry_util.cc index cb4a686..e5b7298 100644 --- a/rlz/win/lib/registry_util.cc +++ b/rlz/win/lib/registry_util.cc @@ -31,14 +31,14 @@ bool RegKeyReadValue(base::win::RegKey& key, const wchar_t* name, } // Note that RLZ string are always ASCII by design. - strncpy(value, WideToUTF8(value_string).c_str(), *value_size); + strncpy(value, base::WideToUTF8(value_string).c_str(), *value_size); value[*value_size - 1] = 0; return true; } bool RegKeyWriteValue(base::win::RegKey& key, const wchar_t* name, const char* value) { - std::wstring value_string(ASCIIToWide(value)); + std::wstring value_string(base::ASCIIToWide(value)); return key.WriteValue(name, value_string.c_str()) == ERROR_SUCCESS; } diff --git a/rlz/win/lib/rlz_value_store_registry.cc b/rlz/win/lib/rlz_value_store_registry.cc index 0aa0023..2b50767 100644 --- a/rlz/win/lib/rlz_value_store_registry.cc +++ b/rlz/win/lib/rlz_value_store_registry.cc @@ -13,6 +13,8 @@ #include "rlz/lib/string_utils.h" #include "rlz/win/lib/registry_util.h" +using base::ASCIIToWide; + namespace rlz_lib { namespace { |