Build fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@423 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2008-09-01 13:31:24 +00:00
parent 4bbfff3cac
commit 10eef7f60e
3 changed files with 37 additions and 15 deletions

View File

@ -155,13 +155,13 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
// read the data and send it to the VideoPlugin
u8 *uData = video_initialize.pGetMemoryPointer(_fifo.CPReadPointer);
#ifdef _WIN32
EnterCriticalSection(&fifo.sync);
EnterCriticalSection(&_fifo.sync);
#endif
_fifo.CPReadPointer += 32;
Video_SendFifoData(uData);
#ifdef _WIN32
InterlockedExchangeAdd((LONG*)&_fifo.CPReadWriteDistance, -32);
LeaveCriticalSection(&fifo.sync);
LeaveCriticalSection(&_fifo.sync);
#endif
// increase the ReadPtr
if (_fifo.CPReadPointer >= _fifo.CPEnd)