Commit 90d50bc6 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

mountmgr.sys: Don't attempt to read from invalid media.

parent c38aa80e
......@@ -899,6 +899,14 @@ static BOOL get_volume_device_info( struct volume *volume )
}
else
{
if(GetLastError() == ERROR_NOT_READY)
{
TRACE( "%s: removable drive with no inserted media\n", debugstr_a(unix_device) );
volume->fs_type = FS_UNKNOWN;
CloseHandle( handle );
return TRUE;
}
volume->fs_type = VOLUME_ReadFATSuperblock( handle, superblock );
if (volume->fs_type == FS_UNKNOWN) volume->fs_type = VOLUME_ReadCDSuperblock( handle, superblock );
}
......
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