some small fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1974 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hyperiris 2009-01-21 17:10:08 +00:00
parent b71d92126d
commit cf8b3b2264
1 changed files with 1 additions and 1 deletions

View File

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