support WIN32

This commit is contained in:
U-WIN-U2045GN0RNQ\Vítor Santos Costa
2010-07-20 22:54:51 +01:00
parent 112402c0d5
commit 4e0c6a0e23
5 changed files with 16 additions and 4 deletions

10
packages/clib/nonblockio.c Normal file → Executable file
View File

@@ -823,13 +823,21 @@ socket_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
for(i=0; i<n; i++)
{ if ( s[i] )
{ __try
{
#if __MINGW32__
{ if ( s[i]->magic != PLSOCK_MAGIC )
{ goto nosocket;
}
}
#else
__try
{ if ( s[i]->magic != PLSOCK_MAGIC )
{ goto nosocket;
}
} __except(EXCEPTION_EXECUTE_HANDLER)
{ goto nosocket;
}
#endif
doRequest(s[i]);
}