[FREELDR] Addendum to 31a3f317.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 10 Aug 2019 17:47:49 +0000 (19:47 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 10 Aug 2019 17:47:49 +0000 (19:47 +0200)
boot/freeldr/freeldr/include/fs.h
boot/freeldr/freeldr/lib/fs/fs.c
boot/freeldr/freeldr/ntldr/winldr.h
boot/freeldr/freeldr/ntldr/wlregistry.c

index fc5ad1e..9c68c79 100644 (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);
index b4e3113..4000b44 100644 (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;
index ede9b64..0471775 100644 (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);
index e5c3635..1e39ec7 100644 (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;