Status = DisconnectRegistry(NULL,
RegistryHives[i].HiveRegistryPath,
1 /* REG_FORCE_UNLOAD */);
- DPRINT1("Unmounting '%S' %s\n", RegistryHives[i].HiveRegistryPath, NT_SUCCESS(Status) ? "succeeded" : "failed");
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("Unmounting '%S' failed\n", RegistryHives[i].HiveRegistryPath);
+ }
/* Switch the hive state to 'Update' */
RegistryHives[i].State = Update;
}
ASSERT(wcslen(ServiceName) < 10);
- DPRINT1("Service name: '%S'\n", ServiceName);
+ DPRINT("Service name: '%S'\n", ServiceName);
RtlStringCchPrintfW(RegPath, ARRAYSIZE(RegPath),
L"System\\CurrentControlSet\\Services\\%s",
RtlStringCchPrintfW(RegPath, ARRAYSIZE(RegPath),
L"System\\CurrentControlSet\\Hardware Profiles\\Current\\System\\CurrentControlSet\\Services\\%s\\Device0",
ServiceName);
- DPRINT1("RegPath: '%S'\n", RegPath);
+ DPRINT("RegPath: '%S'\n", RegPath);
RtlInitUnicodeString(&KeyName, RegPath);
InitializeObjectAttributes(&ObjectAttributes,
&KeyName,
&SectionName,
&SectionNameSize);
- DPRINT1("[%.*s]\n", SectionNameSize, SectionName);
+ DPRINT("[%.*s]\n", SectionNameSize, SectionName);
Section = IniCacheAddSection(*Cache,
SectionName,
&KeyValueSize,
String);
- DPRINT1("'%.*s' = '%.*s'\n", KeyNameSize, KeyName, KeyValueSize, KeyValue);
+ DPRINT("'%.*s' = '%.*s'\n", KeyNameSize, KeyName, KeyValueSize, KeyValue);
Key = IniCacheAddKey(Section,
KeyName,
return;
}
- DPRINT1("We are here (1)!\n");
+ DPRINT("We are here (1)!\n");
List->SystemPartition = NULL;
List->OriginalSystemPartition = NULL;
DPRINT1("NewDisk TRUE but first partition is used?\n");
}
- DPRINT1("We are here (2)!\n");
+ DPRINT("We are here (2)!\n");
/*
* The disk is not new, check if any partition is initialized;
List->SystemPartition = NULL;
List->OriginalSystemPartition = NULL;
- DPRINT1("We are here (3)!\n");
+ DPRINT("We are here (3)!\n");
/* The disk is not new, scan all partitions to find the (active) system partition */
ListEntry = DiskEntry->PrimaryPartListHead.Flink;