Added patch for WSARecv to call SetLastError on success.

This commit is contained in:
Erich E. Hoover
2015-01-07 10:50:48 -07:00
parent 2543a28ce4
commit 1fe2ba1ddc
3 changed files with 22 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ patch_enable_all ()
enable_wpcap_Dynamic_Linking="$1"
enable_ws2_32_Connect_Time="$1"
enable_ws2_32_TransmitFile="$1"
enable_ws2_32_WSARecv_Last_Error="$1"
enable_ws2_32_getaddrinfo="$1"
enable_wtsapi32_EnumerateProcesses="$1"
}
@@ -568,6 +569,9 @@ patch_enable ()
ws2_32-TransmitFile)
enable_ws2_32_TransmitFile="$2"
;;
ws2_32-WSARecv_Last_Error)
enable_ws2_32_WSARecv_Last_Error="$2"
;;
ws2_32-getaddrinfo)
enable_ws2_32_getaddrinfo="$2"
;;
@@ -3304,6 +3308,21 @@ if [ "$enable_ws2_32_TransmitFile" -eq 1 ]; then
) >> "$patchlist"
fi
# Patchset ws2_32-WSARecv_Last_Error
# |
# | This patchset fixes the following Wine bugs:
# | * [#31438] WSARecv should call SetLastError on success
# |
# | Modified files:
# | * dlls/ws2_32/socket.c, dlls/ws2_32/tests/sock.c
# |
if [ "$enable_ws2_32_WSARecv_Last_Error" -eq 1 ]; then
patch_apply ws2_32-WSARecv_Last_Error/0001-ws2_32-Call-SetLastError-for-successful-WSARecv.patch
(
echo '+ { "Heiko Przybyl", "ws2_32: Call SetLastError for successful WSARecv.", 1 },';
) >> "$patchlist"
fi
# Patchset ws2_32-getaddrinfo
# |
# | This patchset fixes the following Wine bugs: