mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Windows side compile fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3285 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
cd03e98d3c
commit
cf732972d9
@ -119,7 +119,7 @@ if(isActivated())
|
||||
|
||||
//set up recv event
|
||||
mHRecvEvent = CreateEvent(NULL, false, false, NULL);
|
||||
//ZERO_OBJECT(mReadOverlapped);
|
||||
memset((void*)&mReadOverlapped, 0 , sizeof(mReadOverlapped));
|
||||
resume();
|
||||
|
||||
DEBUGPRINT("Success!\n\n");
|
||||
@ -182,12 +182,8 @@ bool CEXIETHERNET::startRecv() {
|
||||
DEBUGPRINT("already waiting\n");
|
||||
return true;
|
||||
}
|
||||
DWORD BytesRead = 0;
|
||||
DWORD *Buffer = (DWORD *)malloc(2048); // Should be enough
|
||||
DWORD res = ReadFile(mHAdapter, Buffer, BytesRead,
|
||||
DWORD res = ReadFile(mHAdapter, mRecvBuffer, mRecvBuffer.size(),
|
||||
&mRecvBufferLength, &mReadOverlapped);
|
||||
mRecvBuffer.write(BytesRead, Buffer);
|
||||
free(Buffer);
|
||||
if(res) { //Operation completed immediately
|
||||
DEBUGPRINT("completed, res %i\n", res);
|
||||
mWaiting = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user