From f3b672ec37e1f1f4a8f891a2f34bdb2be3603201 Mon Sep 17 00:00:00 2001 From: Emmet Young Date: Sat, 6 Oct 2012 23:55:56 +1000 Subject: [PATCH] Fix some naming mistakes in Mempak.cpp from previous commit --- Source/Project64/N64 System/Mips/Mempak.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Project64/N64 System/Mips/Mempak.cpp b/Source/Project64/N64 System/Mips/Mempak.cpp index f6ab529d8..c2f557fdd 100644 --- a/Source/Project64/N64 System/Mips/Mempak.cpp +++ b/Source/Project64/N64 System/Mips/Mempak.cpp @@ -49,12 +49,12 @@ void LoadMempak (void) { FileName.CreateDirectory(); } - hMempakFile = CreateFile(File,GENERIC_WRITE | GENERIC_READ, FILE_SHARE_READ,NULL,OPEN_ALWAYS, + hMempakFile = CreateFile(FileName,GENERIC_WRITE | GENERIC_READ, FILE_SHARE_READ,NULL,OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_RANDOM_ACCESS, NULL); - if (m_hFile == INVALID_HANDLE_VALUE) + if (hMempakFile == INVALID_HANDLE_VALUE) { - WriteTraceF(TraceError,"Mempak::LoadMempak: Failed to open (%s), ReadOnly = %d, LastError = %X",(LPCTSTR)FileName, m_ReadOnly, GetLastError()); + WriteTraceF(TraceError,"Mempak::LoadMempak: Failed to open (%s), lastError = %X",(LPCTSTR)FileName, GetLastError()); return; }