1
0
atdalīts no xt-sys/exectos

Store ARC name as well as system path

Šī revīzija ir iekļauta:
Rafal Kupiec 2022-11-07 15:53:50 +01:00
vecāks 66713ba461
revīzija 9aa6d6913a
Parakstījis: belliash
GPG atslēgas ID: 4E829243E0CFE6B4

Parādīt failu

@ -589,7 +589,7 @@ BlpDissectVolumeArcPath(IN PUCHAR SystemPath,
OUT PULONG DriveNumber, OUT PULONG DriveNumber,
OUT PULONG PartNumber) OUT PULONG PartNumber)
{ {
PUCHAR ArcPath; PUCHAR ArcPath, LocalArcName;
ULONG ArcLength = 0; ULONG ArcLength = 0;
/* Set default values */ /* Set default values */
@ -713,9 +713,13 @@ BlpDissectVolumeArcPath(IN PUCHAR SystemPath,
*Path = SystemPath + ArcLength; *Path = SystemPath + ArcLength;
} }
/* Store ARC name if possible */
if(ArcName) if(ArcName)
{ {
/* TODO: Store ARC path in ArcName */ BlEfiMemoryAllocatePool(ArcLength, (PVOID *)&LocalArcName);
RtlCopyMemory(LocalArcName, SystemPath, ArcLength);
LocalArcName[ArcLength] = '\0';
*ArcName = LocalArcName;
} }
/* Return success */ /* Return success */