mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
mountmgr.sys: Do not add drive letters or volumes for macOS volumes without mount paths.
Mounted volumes that are not represented in the filesystem are system volumes that we should ignore (e.g. recovery and preboot).
This commit is contained in:
parent
e4b78284a9
commit
89481f43a5
|
@ -91,9 +91,12 @@ static void appeared_callback( DADiskRef disk, void *context )
|
|||
if ((volume_url = CFDictionaryGetValue( dict, CFSTR("DAVolumePath") )))
|
||||
CFURLGetFileSystemRepresentation( volume_url, true, (UInt8 *)mount_point, sizeof(mount_point) );
|
||||
else
|
||||
mount_point[0] = 0;
|
||||
{
|
||||
TRACE( "ignoring volume %s, uuid %s: no macOS volume path\n", device, wine_dbgstr_guid(guid_ptr) );
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (volume_url && CFURLCopyResourcePropertyForKey( volume_url, kCFURLVolumeIsBrowsableKey, &ref, NULL ))
|
||||
if (CFURLCopyResourcePropertyForKey( volume_url, kCFURLVolumeIsBrowsableKey, &ref, NULL ))
|
||||
{
|
||||
Boolean is_browsable = CFBooleanGetValue( ref );
|
||||
CFRelease( ref );
|
||||
|
|
Loading…
Reference in a new issue