[misc] fix WDK warnings

This commit is contained in:
Pete Batard 2016-02-05 22:24:47 +00:00
parent 9de7d0db84
commit e1499c4db0
4 changed files with 19 additions and 8 deletions

View file

@ -654,7 +654,7 @@ static void SetTargetSystem(void)
static void SetProposedLabel(int ComboIndex)
{
const char no_label[] = STR_NO_LABEL;
const char no_label[] = STR_NO_LABEL, empty[] = "";
int bt = (int)ComboBox_GetItemData(hBootType, ComboBox_GetCurSel(hBootType));
app_changed_label = TRUE;
@ -680,7 +680,7 @@ static void SetProposedLabel(int ComboIndex)
}
// Else if no existing label is available, propose one according to the size (eg: "256MB", "8GB")
if ((safe_stricmp(no_label, DriveLabel.String[ComboIndex]) == 0) || (safe_stricmp(no_label, "") == 0)
if ((safe_stricmp(no_label, DriveLabel.String[ComboIndex]) == 0) || (safe_stricmp(no_label, empty) == 0)
|| (safe_stricmp(lmprintf(MSG_207), DriveLabel.String[ComboIndex]) == 0)) {
SetWindowTextU(hLabel, SelectedDrive.proposed_label);
} else {