windows: Allow GUID with and without trailing zeroes

Improve the GUID length check to accommodate the cases where the GUID
string fetched from registry does not have a trailing zero, or if a
multi-string entry, one or two trailing zeroes.

Closes #927

Signed-off-by: Craig Hutchinson <>
[Tormod: Use correct types and simplify comparisons]
Signed-off-by: Tormod Volden <>
Signed-off-by: Nathan Hjelm <>
2 files changed