win32/registry: resize the value by the correct amount

This commit is contained in:
Danny Robson 2018-08-20 16:14:09 +10:00
parent 7e1b14fe98
commit 4b30235164

View File

@ -88,7 +88,7 @@ key::values (void) const
win32::error::throw_code (err);
CHECK_GT (size, 0u);
name.resize (size - 1);
name.resize (size);
all.insert (std::move (name));
}