Store ARC name as well as system path
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2022-11-07 15:53:50 +01:00
parent 66713ba461
commit 9aa6d6913a
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

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