win32/registry: resize the value by the correct amount
This commit is contained in:
parent
7e1b14fe98
commit
4b30235164
@ -88,7 +88,7 @@ key::values (void) const
|
|||||||
win32::error::throw_code (err);
|
win32::error::throw_code (err);
|
||||||
|
|
||||||
CHECK_GT (size, 0u);
|
CHECK_GT (size, 0u);
|
||||||
name.resize (size - 1);
|
name.resize (size);
|
||||||
|
|
||||||
all.insert (std::move (name));
|
all.insert (std::move (name));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user