From 77f392edac1806fcba929dd72b7775dd850f8d6c Mon Sep 17 00:00:00 2001 From: gabest11 Date: Mon, 7 Feb 2011 10:09:58 +0000 Subject: [PATCH] vs2008 compatibility fix git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4288 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GS.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/GSdx/GS.cpp b/plugins/GSdx/GS.cpp index e2bdca3911..e44d0f0289 100644 --- a/plugins/GSdx/GS.cpp +++ b/plugins/GSdx/GS.cpp @@ -600,26 +600,26 @@ EXPORT_C GSReplay(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) case 0: if(buff.size() < 0x4000) buff.resize(0x4000); addr = 0x4000 - size; - fread(buff.data() + addr, size, 1, fp); - GSgifTransfer1(buff.data(), addr); + fread(&buff[addr], size, 1, fp); + GSgifTransfer1(&buff[0], addr); break; case 1: if(buff.size() < size) buff.resize(size); - fread(buff.data(), size, 1, fp); - GSgifTransfer2(buff.data(), size / 16); + fread(&buff[0], size, 1, fp); + GSgifTransfer2(&buff[0], size / 16); break; case 2: if(buff.size() < size) buff.resize(size); - fread(buff.data(), size, 1, fp); - GSgifTransfer3(buff.data(), size / 16); + fread(&buff[0], size, 1, fp); + GSgifTransfer3(&buff[0], size / 16); break; case 3: if(buff.size() < size) buff.resize(size); - fread(buff.data(), size, 1, fp); - GSgifTransfer(buff.data(), size / 16); + fread(&buff[0], size, 1, fp); + GSgifTransfer(&buff[0], size / 16); break; }