From 0a4122fb277b4dedb92bc91722e338bf30b1c663 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 9 Feb 2026 12:06:54 +0100 Subject: [PATCH] [channels,drive] name volume with freerdp_getApplicationDetailsString --- channels/drive/client/drive_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/channels/drive/client/drive_main.c b/channels/drive/client/drive_main.c index 9758846c8..8a560f264 100644 --- a/channels/drive/client/drive_main.c +++ b/channels/drive/client/drive_main.c @@ -22,6 +22,7 @@ */ #include +#include #include #include @@ -460,7 +461,6 @@ static UINT drive_process_irp_query_volume_information(DRIVE_DEVICE* drive, IRP* DWORD lpNumberOfFreeClusters = 0; DWORD lpTotalNumberOfClusters = 0; WIN32_FILE_ATTRIBUTE_DATA wfad = { 0 }; - WCHAR LabelBuffer[32] = { 0 }; if (!drive || !irp) return ERROR_INVALID_PARAMETER; @@ -479,8 +479,7 @@ static UINT drive_process_irp_query_volume_information(DRIVE_DEVICE* drive, IRP* case FileFsVolumeInformation: { /* http://msdn.microsoft.com/en-us/library/cc232108.aspx */ - const WCHAR* volumeLabel = - InitializeConstWCharFromUtf8("FREERDP", LabelBuffer, ARRAYSIZE(LabelBuffer)); + const WCHAR* volumeLabel = freerdp_getApplicationDetailsStringW(); const size_t volumeLabelLen = (_wcslen(volumeLabel) + 1) * sizeof(WCHAR); const size_t length = 17ul + volumeLabelLen; @@ -525,6 +524,7 @@ static UINT drive_process_irp_query_volume_information(DRIVE_DEVICE* drive, IRP* case FileFsAttributeInformation: { + WCHAR LabelBuffer[32] = { 0 }; /* http://msdn.microsoft.com/en-us/library/cc232101.aspx */ const WCHAR* diskType = InitializeConstWCharFromUtf8("FAT32", LabelBuffer, ARRAYSIZE(LabelBuffer));