]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/interprocess/detail/win32_api.hpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / interprocess / detail / win32_api.hpp
index 1ea8cec53d5b90aea90406af2466d032ccb15890..d12097f5120008a77cc404dce43266d9ccac7e91 100644 (file)
@@ -2035,7 +2035,7 @@ inline bool get_registry_value_string(hkey key_type, const char *subkey_name, co
       unsigned long size;
       unsigned long type;
       long err = reg_query_value_ex( key, value_name, 0, &type, 0, &size);
-      if((reg_sz == type || reg_expand_sz != type) && !err){
+      if((reg_sz == type || reg_expand_sz == type) && !err){
          //Size includes terminating NULL
          s.resize(size);
          err = reg_query_value_ex( key, value_name, 0, &type, (unsigned char*)(&s[0]), &size);