[FREELDR] Addendum to 31a3f317.

This commit is contained in:
Hermès Bélusca-Maïto 2019-08-10 19:47:49 +02:00
parent d7d13b3226
commit 8823a0c51e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
4 changed files with 13 additions and 13 deletions

View file

@ -26,7 +26,7 @@ typedef struct tagDEVVTBL
ARC_OPEN Open;
ARC_READ Read;
ARC_SEEK Seek;
LPCWSTR ServiceName;
PCWSTR ServiceName;
} DEVVTBL;
#define MAX_FDS 60
@ -43,7 +43,7 @@ ULONG FsGetNumPathParts(PCSTR Path);
VOID FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path);
VOID FsRegisterDevice(CHAR* Prefix, const DEVVTBL* FuncTable);
LPCWSTR FsGetServiceName(ULONG FileId);
PCWSTR FsGetServiceName(ULONG FileId);
VOID FsSetDeviceSpecific(ULONG FileId, VOID* Specific);
VOID* FsGetDeviceSpecific(ULONG FileId);
ULONG FsGetDeviceId(ULONG FileId);

View file

@ -385,7 +385,7 @@ VOID FsRegisterDevice(CHAR* Prefix, const DEVVTBL* FuncTable)
InsertHeadList(&DeviceListHead, &pNewEntry->ListEntry);
}
LPCWSTR FsGetServiceName(ULONG FileId)
PCWSTR FsGetServiceName(ULONG FileId)
{
if (FileId >= MAX_FDS || !FileData[FileId].FuncTable)
return NULL;

View file

@ -112,7 +112,7 @@ WinLdrInitSystemHive(
IN BOOLEAN Setup);
BOOLEAN WinLdrScanSystemHive(IN OUT PLOADER_PARAMETER_BLOCK LoaderBlock,
IN PCSTR DirectoryPath);
IN PCSTR SystemRoot);
// winldr.c
VOID
@ -129,9 +129,9 @@ WinLdrLoadNLSData(IN OUT PLOADER_PARAMETER_BLOCK LoaderBlock,
IN PCSTR LanguageFileName);
BOOLEAN
WinLdrAddDriverToList(LIST_ENTRY *BootDriverListHead,
LPWSTR RegistryPath,
LPWSTR ImagePath,
LPWSTR ServiceName);
PWSTR RegistryPath,
PWSTR ImagePath,
PWSTR ServiceName);
VOID
WinLdrpDumpMemoryDescriptors(PLOADER_PARAMETER_BLOCK LoaderBlock);

View file

@ -106,7 +106,7 @@ WinLdrLoadSystemHive(
Success = WinLdrAddDriverToList(&LoaderBlock->BootDriverListHead,
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\",
NULL,
(LPWSTR)FsService);
(PWSTR)FsService);
if (!Success)
TRACE(" Failed to add filesystem service\n");
}
@ -490,13 +490,13 @@ WinLdrScanRegistry(IN OUT PLIST_ENTRY BootDriverListHead,
{
LONG rc = 0;
HKEY hGroupKey, hOrderKey, hServiceKey, hDriverKey;
LPWSTR GroupNameBuffer;
PWSTR GroupNameBuffer;
WCHAR ServiceName[256];
ULONG OrderList[128];
ULONG BufferSize;
ULONG Index;
ULONG TagIndex;
LPWSTR GroupName;
PWSTR GroupName;
ULONG ValueSize;
ULONG ValueType;
@ -773,9 +773,9 @@ InsertInBootDriverList(
BOOLEAN
WinLdrAddDriverToList(LIST_ENTRY *BootDriverListHead,
LPWSTR RegistryPath,
LPWSTR ImagePath,
LPWSTR ServiceName)
PWSTR RegistryPath,
PWSTR ImagePath,
PWSTR ServiceName)
{
PBOOT_DRIVER_LIST_ENTRY BootDriverEntry;
NTSTATUS Status;