[MKHIVE] Improve dprint output (delimiting where strings start & end: is useful for empty strings).

svn path=/branches/setup_improvements/; revision=74768
This commit is contained in:
Hermès Bélusca-Maïto 2017-06-03 16:41:00 +00:00
parent 84d2264d9b
commit c069ca1797
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -172,7 +172,7 @@ append_multi_sz_value(
if (Total != Size) if (Total != Size)
{ {
DPRINT("setting value %S to %S\n", ValueName, Buffer); DPRINT("setting value '%S' to '%S'\n", ValueName, Buffer);
RegSetValueExW(KeyHandle, RegSetValueExW(KeyHandle,
ValueName, ValueName,
0, 0,
@ -290,6 +290,7 @@ do_reg_operation(
if (Str == NULL) if (Str == NULL)
return TRUE; return TRUE;
DPRINT("append_multi_sz_value(ValueName = '%S')\n", ValueName);
append_multi_sz_value(KeyHandle, append_multi_sz_value(KeyHandle,
ValueName, ValueName,
Str, Str,
@ -319,7 +320,7 @@ do_reg_operation(
{ {
ULONG dw = Str ? strtoulW(Str, NULL, 0) : 0; ULONG dw = Str ? strtoulW(Str, NULL, 0) : 0;
DPRINT("setting dword %S to %x\n", ValueName, dw); DPRINT("setting dword '%S' to %x\n", ValueName, dw);
RegSetValueExW(KeyHandle, RegSetValueExW(KeyHandle,
ValueName, ValueName,
@ -330,7 +331,7 @@ do_reg_operation(
} }
else else
{ {
DPRINT("setting value %S to %S\n", ValueName, Str); DPRINT("setting value '%S' to '%S'\n", ValueName, Str);
if (Str) if (Str)
{ {
@ -366,7 +367,7 @@ do_reg_operation(
if (Data == NULL) if (Data == NULL)
return FALSE; return FALSE;
DPRINT("setting binary data %S len %d\n", ValueName, Size); DPRINT("setting binary data '%S' len %d\n", ValueName, Size);
InfHostGetBinaryField(Context, 5, Data, Size, NULL); InfHostGetBinaryField(Context, 5, Data, Size, NULL);
} }
@ -400,7 +401,6 @@ registry_callback(HINF hInf, PWCHAR Section, BOOL Delete)
HKEY KeyHandle; HKEY KeyHandle;
BOOL Ok; BOOL Ok;
Ok = InfHostFindFirstLine(hInf, Section, NULL, &Context) == 0; Ok = InfHostFindFirstLine(hInf, Section, NULL, &Context) == 0;
if (!Ok) if (!Ok)
return TRUE; /* Don't fail if the section isn't present */ return TRUE; /* Don't fail if the section isn't present */
@ -501,7 +501,6 @@ ImportRegistryFile(PCHAR FileName)
} }
InfHostCloseFile(hInf); InfHostCloseFile(hInf);
return TRUE; return TRUE;
} }