fix GeoID bug (forgotten \0)

svn path=/trunk/; revision=48883
This commit is contained in:
Matthias Kupfer 2010-09-25 18:24:57 +00:00
parent 28b33bcfe7
commit 0b903df4a7

View file

@ -989,7 +989,7 @@ SetGeoID(PWCHAR Id)
0,
REG_SZ,
(PVOID)Id,
(wcslen(Id) * sizeof(WCHAR)));
(wcslen(Id) + 1) * sizeof(WCHAR));
if (!NT_SUCCESS(Status))
{
DPRINT1("NtSetValueKey() failed (Status = %lx)\n", Status);