diff options
author | davilla <davilla@4pi.com> | 2012-04-16 20:16:29 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2012-04-16 20:16:43 -0400 |
commit | 6a71e83f59f488880dff193ec5295363b9ab365e (patch) | |
tree | 04cc08f79bb6c41cce0416a1ab6a491609c5ed3e | |
parent | 638fc4f032b9afa2ababfd981decab84a3b3d87d (diff) |
[osx] be extra paranoid and check for a null return from CFDataGetBytePtr
-rw-r--r-- | xbmc/osx/CocoaInterface.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/osx/CocoaInterface.mm b/xbmc/osx/CocoaInterface.mm index 2b29cdf755..9e85f776ad 100644 --- a/xbmc/osx/CocoaInterface.mm +++ b/xbmc/osx/CocoaInterface.mm @@ -566,7 +566,7 @@ bool Cocoa_GPUForDisplayIsNvidiaPureVideo3() if (model) { cstr = (const char*)CFDataGetBytePtr(model); - if (std::string(cstr).find("NVIDIA GeForce 9400") != std::string::npos) + if (cstr && std::string(cstr).find("NVIDIA GeForce 9400") != std::string::npos) result = true; CFRelease(model); |