Commit eb0ab1b1 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

Fixed return value of CDROM_GetLabel if CDROM_Open failed (e.g. no

Device entry for drive in wine.conf).
parent b7392f5c
......@@ -1305,6 +1305,8 @@ static int DOSFS_FindNextEx( FIND_FIRST_INFO *info, WIN32_FIND_DATAA *entry )
DOSFS_ToDosDTAFormat( DRIVE_GetLabel( info->drive ), entry->cFileName );
strcpy( entry->cAlternateFileName, entry->cFileName );
info->cur_pos++;
TRACE("returning %s (%s) as label\n",
entry->cFileName, entry->cAlternateFileName);
return 1;
}
......
......@@ -780,6 +780,9 @@ DWORD CDROM_GetLabel(int drive, char *label)
p, label);
CDROM_Close(&wcda);
}
else
res = 0;
return res;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment