From 18986bffa458d141883ddbf1d77509608d14a221 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Wed, 23 Nov 2011 12:39:47 +0000 Subject: [PATCH] [enum] fixed label display for drives with no label --- rufus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rufus.c b/rufus.c index e2a678eb..0bc16d81 100644 --- a/rufus.c +++ b/rufus.c @@ -283,7 +283,7 @@ static BOOL GetDriveLabel(DWORD num, char* letter, char** label) safe_closehandle(hDrive); *letter = DrivePath[0]; - if (GetVolumeInformationA(DrivePath, volume_label, sizeof(volume_label), NULL, NULL, NULL, NULL, 0)) { + if (GetVolumeInformationA(DrivePath, volume_label, sizeof(volume_label), NULL, NULL, NULL, NULL, 0) && *volume_label) { *label = volume_label; }