diff --git a/Source/Core/DiscIO/Src/BannerLoaderWii.cpp b/Source/Core/DiscIO/Src/BannerLoaderWii.cpp index e0470549df..1cd8b9ff24 100644 --- a/Source/Core/DiscIO/Src/BannerLoaderWii.cpp +++ b/Source/Core/DiscIO/Src/BannerLoaderWii.cpp @@ -44,7 +44,7 @@ CBannerLoaderWii::CBannerLoaderWii(DiscIO::IFileSystem& _rFileSystem) { m_pBannerFile = new u8[FileSize]; FILE* pFile = fopen(Filename, "rb"); - if (pFile != NULL) + if ((pFile != NULL) && (m_pBannerFile != NULL)) { fread(m_pBannerFile, FileSize, 1, pFile); fclose(pFile);