diff options
author | Simon Rozman <simon@rozman.si> | 2019-05-11 06:21:02 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-11 17:14:37 +0200 |
commit | 6c1b66802f533f4b6ebad72147e1fd6fe11c6cd7 (patch) | |
tree | 6f5f3be5dd60ba6a0da04ce27f04b1f6c8356b69 /rwcancel | |
parent | 5669ed326f1a1c535c1251f07a31323ec3c60ef1 (diff) |
wintun: registry: revise value reading
- Make getStringValueRetry() reusable for reading any value type. This
merges code from GetIntegerValueWait().
- expandString() >> toString() and extend to support REG_MULTI_SZ
(to return first value of REG_MULTI_SZ). Furthermore, doing our own
UTF-16 to UTF-8 conversion works around a bug in windows/registry's
GetStringValue() non-zero terminated string handling.
- Provide toInteger() analogous to toString()
- GetStringValueWait() tolerates and reads REG_MULTI_SZ too now. It
returns REG_MULTI_SZ[0], making GetFirstStringValueWait() redundant.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'rwcancel')
0 files changed, 0 insertions, 0 deletions