mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-22 20:23:04 +00:00
Fix a crash in BGMBackgroundMusicDevice::ResponsibleBundleIDsOf.
If the bundle ID passed to the function (a CACFString) was wrapping a null CFStringRef, one of the comparison operator functions of CACFString would pass null to CFStringCompare.
This commit is contained in:
parent
07a419fb34
commit
289f6b3d27
1 changed files with 5 additions and 0 deletions
|
@ -212,6 +212,11 @@ void BGMBackgroundMusicDevice::SendAppVolumeOrPanToBGMDevice(SInt32 inNewValue,
|
|||
std::vector<CACFString>
|
||||
BGMBackgroundMusicDevice::ResponsibleBundleIDsOf(CACFString inParentBundleID)
|
||||
{
|
||||
if(!inParentBundleID.IsValid())
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
std::map<CACFString, std::vector<CACFString>> bundleIDMap = {
|
||||
// Finder
|
||||
{ "com.apple.finder", { "com.apple.quicklook.ui.helper" } },
|
||||
|
|
Loading…
Reference in a new issue