summaryrefslogtreecommitdiff
path: root/boost/interprocess/detail/win32_api.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/interprocess/detail/win32_api.hpp')
-rw-r--r--boost/interprocess/detail/win32_api.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/interprocess/detail/win32_api.hpp b/boost/interprocess/detail/win32_api.hpp
index 1ea8cec53d..d12097f512 100644
--- a/boost/interprocess/detail/win32_api.hpp
+++ b/boost/interprocess/detail/win32_api.hpp
@@ -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);