Sync wininet with Wine. This fixes the Download! issue.
authorColin Finck <colin@reactos.org>
Sat, 31 May 2008 13:02:59 +0000 (13:02 +0000)
committerColin Finck <colin@reactos.org>
Sat, 31 May 2008 13:02:59 +0000 (13:02 +0000)
commitbdec9df44c9252214a301fbe65558d39f6e009da
treee01336536b12821db47621c77301fd4e00179ff8
parentc446f5ff58d3c19b9515a4ef1727abb40a6d6754
Sync wininet with Wine. This fixes the Download! issue.

As we implement some more functions in the network stack now, I could remove some hacks from the "wininet_ros.diff" file.
Anyways, the following things still needed to be changed:
- Pass a variable to WriteFile for receiving the number of bytes written. This parameter is not checked for NULL in ReactOS and Windows, when lpOverlapped is also NULL.
  I'll submit a patch about this to Wine as well.
- Replace Unix poll() calls by equivalent select() calls
- Bypass sock_get_error(), directly call WSAGetLastError() as we don't have to translate Unix socket errors.

See issue #3197 for more details.

svn path=/trunk/; revision=33788
16 files changed:
reactos/dll/win32/wininet/cookie.c
reactos/dll/win32/wininet/ftp.c
reactos/dll/win32/wininet/http.c
reactos/dll/win32/wininet/internet.c
reactos/dll/win32/wininet/internet.h
reactos/dll/win32/wininet/netconnection.c
reactos/dll/win32/wininet/rsrc.rc
reactos/dll/win32/wininet/urlcache.c
reactos/dll/win32/wininet/utility.c
reactos/dll/win32/wininet/wininet.spec
reactos/dll/win32/wininet/wininet_Da.rc [new file with mode: 0644]
reactos/dll/win32/wininet/wininet_Ru.rc
reactos/dll/win32/wininet/wininet_Si.rc
reactos/dll/win32/wininet/wininet_Sv.rc
reactos/dll/win32/wininet/wininet_ros.diff
reactos/include/psdk/wininet.h