1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +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:
Tim Clem 2024-05-10 12:29:27 -07:00 committed by Alexandre Julliard
parent e4b78284a9
commit 89481f43a5

View File

@ -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 );