https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c069ca17971f15487b195…
commit c069ca17971f15487b195c8a9ebd42712b071d1b
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sat Jun 3 16:41:00 2017 +0000
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Mon Oct 8 21:23:39 2018 +0200
[MKHIVE] Improve dprint output (delimiting where strings start & end: is useful
for empty strings).
svn path=/branches/setup_improvements/; revision=74768
---
sdk/tools/mkhive/reginf.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/sdk/tools/mkhive/reginf.c b/sdk/tools/mkhive/reginf.c
index 931fc2feab..c6087a96ba 100644
--- a/sdk/tools/mkhive/reginf.c
+++ b/sdk/tools/mkhive/reginf.c
@@ -172,7 +172,7 @@ append_multi_sz_value(
if (Total != Size)
{
- DPRINT("setting value %S to %S\n", ValueName, Buffer);
+ DPRINT("setting value '%S' to '%S'\n", ValueName,
Buffer);
RegSetValueExW(KeyHandle,
ValueName,
0,
@@ -290,6 +290,7 @@ do_reg_operation(
if (Str == NULL)
return TRUE;
+ DPRINT("append_multi_sz_value(ValueName = '%S')\n",
ValueName);
append_multi_sz_value(KeyHandle,
ValueName,
Str,
@@ -319,7 +320,7 @@ do_reg_operation(
{
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,
ValueName,
@@ -330,7 +331,7 @@ do_reg_operation(
}
else
{
- DPRINT("setting value %S to %S\n", ValueName, Str);
+ DPRINT("setting value '%S' to '%S'\n", ValueName,
Str);
if (Str)
{
@@ -366,7 +367,7 @@ do_reg_operation(
if (Data == NULL)
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);
}
@@ -400,7 +401,6 @@ registry_callback(HINF hInf, PWCHAR Section, BOOL Delete)
HKEY KeyHandle;
BOOL Ok;
-
Ok = InfHostFindFirstLine(hInf, Section, NULL, &Context) == 0;
if (!Ok)
return TRUE; /* Don't fail if the section isn't present */
@@ -501,7 +501,6 @@ ImportRegistryFile(PCHAR FileName)
}
InfHostCloseFile(hInf);
-
return TRUE;
}