rtoss - Diff between revs 341 and 342

Subversion Repositories:
Rev:
Show entire file - Ignore whitespace
Rev 341 Rev 342
Line 207... Line 207...
207 207
208 BOOL CVisualBoyHandler::Read(DWORD_PTR dwBaseAddr, DWORD_PTR dwSize, LPVOID lpBuffer) 208 BOOL CVisualBoyHandler::Read(DWORD_PTR dwBaseAddr, DWORD_PTR dwSize, LPVOID lpBuffer)
209 { 209 {
210         CONST VBA_PtrEntry *ppe = reinterpret_cast<CONST VBA_PtrEntry *>(&m_PtrStruct); 210         CONST VBA_PtrEntry *ppe = reinterpret_cast<CONST VBA_PtrEntry *>(&m_PtrStruct);
211         DWORD_PTR       dwIndex = (dwBaseAddr & 0x0F000000) >> 24; 211         DWORD_PTR       dwIndex = (dwBaseAddr & 0x0F000000) >> 24;
212         DWORD_PTR       dwOffset = dwBaseAddr & 0x01FFFFFF; -  
-   212         DWORD_PTR       dwOffset = dwBaseAddr & 0x00FFFFFF;
213 213
214         if(dwOffset + dwSize <= ppe[dwIndex].dwSize) 214         if(dwOffset + dwSize <= ppe[dwIndex].dwSize)
215         { 215         {
216                 return CProcessHandler::Read(ppe[dwIndex].dwPointer + dwOffset, dwSize, lpBuffer); 216                 return CProcessHandler::Read(ppe[dwIndex].dwPointer + dwOffset, dwSize, lpBuffer);
217         } 217         }
Line 239... Line 239...
239 239
240 BOOL CVisualBoyHandler::Write(DWORD_PTR dwBaseAddr, DWORD_PTR dwSize, LPCVOID lpBuffer) 240 BOOL CVisualBoyHandler::Write(DWORD_PTR dwBaseAddr, DWORD_PTR dwSize, LPCVOID lpBuffer)
241 { 241 {
242         CONST VBA_PtrEntry *ppe = reinterpret_cast<CONST VBA_PtrEntry *>(&m_PtrStruct); 242         CONST VBA_PtrEntry *ppe = reinterpret_cast<CONST VBA_PtrEntry *>(&m_PtrStruct);
243         DWORD_PTR       dwIndex = (dwBaseAddr & 0x0F000000) >> 24; 243         DWORD_PTR       dwIndex = (dwBaseAddr & 0x0F000000) >> 24;
244         DWORD_PTR       dwOffset = dwBaseAddr & 0x01FFFFFF; -  
-   244         DWORD_PTR       dwOffset = dwBaseAddr & 0x00FFFFFF;
245 245
246         if(dwOffset + dwSize <= ppe[dwIndex].dwSize) 246         if(dwOffset + dwSize <= ppe[dwIndex].dwSize)
247         { 247         {
248                 return CProcessHandler::Write(ppe[dwIndex].dwPointer + dwOffset, dwSize, lpBuffer); 248                 return CProcessHandler::Write(ppe[dwIndex].dwPointer + dwOffset, dwSize, lpBuffer);
249         } 249         }