Skip to content

Commit a36ed7a

Browse files
committed
[0.4.11] [WINHTTP] Sledge-Hammer-Revert to SVN r75943 to fix regression CORE-13952
Our RCs were still affected by that regression. The revert allows to run the current Online! setup of Flash-Player 32.0.0.1 to download. (I was able to watch a flash video in Opera 12.18 afterwards, before I was not) same procedure as last releases
1 parent 2fc4683 commit a36ed7a

File tree

11 files changed

+1133
-1464
lines changed

11 files changed

+1133
-1464
lines changed

dll/win32/winhttp/CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11

2-
remove_definitions(-D_WIN32_WINNT=0x502)
3-
add_definitions(-D_WIN32_WINNT=0x600)
4-
52
add_definitions(
63
-D__WINESRC__
74
-D_WINE)
@@ -17,7 +14,7 @@ list(APPEND SOURCE
1714
request.c
1815
session.c
1916
url.c
20-
precomp.h)
17+
winhttp_private.h)
2118

2219
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winhttp_tlb.tlb)
2320
add_typelib(winhttp_tlb.idl)
@@ -30,7 +27,7 @@ add_library(winhttp SHARED
3027
set_module_type(winhttp win32dll)
3128
target_link_libraries(winhttp uuid wine)
3229
add_delay_importlibs(winhttp oleaut32 ole32 crypt32 secur32)
33-
add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy kernel32_vista msvcrt kernel32 ntdll)
30+
add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy msvcrt kernel32 ntdll)
3431
add_dependencies(winhttp stdole2)
35-
add_pch(winhttp precomp.h SOURCE)
32+
add_pch(winhttp winhttp_private.h SOURCE)
3633
add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)

dll/win32/winhttp/cookie.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,8 @@
1616
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
1717
*/
1818

19-
#include "config.h"
20-
#include <stdarg.h>
21-
22-
#include "wine/debug.h"
23-
#include "wine/list.h"
24-
25-
#include "windef.h"
26-
#include "winbase.h"
27-
#include "winhttp.h"
28-
2919
#include "winhttp_private.h"
3020

31-
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
32-
3321
static domain_t *add_domain( session_t *session, WCHAR *name )
3422
{
3523
domain_t *domain;
@@ -152,7 +140,7 @@ static cookie_t *parse_cookie( const WCHAR *string )
152140

153141
if (*p++ == '=')
154142
{
155-
while (*p == ' ') p++;
143+
while (*p && *p == ' ') p++;
156144
len = strlenW( p );
157145
while (len && p[len - 1] == ' ') len--;
158146

dll/win32/winhttp/handle.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,8 @@
1818
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
1919
*/
2020

21-
#include "config.h"
22-
#include "wine/port.h"
23-
#include "wine/debug.h"
24-
25-
#include <stdarg.h>
26-
27-
#include "windef.h"
28-
#include "winbase.h"
29-
#include "winhttp.h"
30-
3121
#include "winhttp_private.h"
3222

33-
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
34-
3523
#define HANDLE_CHUNK_SIZE 0x10
3624

3725
static CRITICAL_SECTION handle_cs;

dll/win32/winhttp/inet_ntop.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,16 @@ static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
5151
* author:
5252
* Paul Vixie, 1996.
5353
*/
54-
55-
PCSTR
56-
WSAAPI
57-
inet_ntop(INT Family, PVOID pAddr, PSTR pStringBuf, size_t StringBufSize)
54+
const char *
55+
inet_ntop(int af, const void *src, char *dst, size_t size)
5856
{
5957

60-
switch (Family) {
58+
switch (af) {
6159
case AF_INET:
62-
return (inet_ntop4(pAddr, pStringBuf, StringBufSize));
60+
return (inet_ntop4(src, dst, size));
6361
#ifdef INET6
6462
case AF_INET6:
65-
return (inet_ntop6(pAddr, pStringBuf, StringBufSize));
63+
return (inet_ntop6(src, dst, size));
6664
#endif
6765
default:
6866
WSASetLastError(WSAEAFNOSUPPORT);

dll/win32/winhttp/main.c

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,12 @@
1616
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
1717
*/
1818

19-
#define COBJMACROS
20-
#include "config.h"
21-
#include <stdarg.h>
22-
23-
#include "windef.h"
24-
#include "winbase.h"
25-
#include "objbase.h"
26-
#include "rpcproxy.h"
27-
#include "httprequest.h"
28-
#include "winhttp.h"
29-
30-
#include "wine/debug.h"
3119
#include "winhttp_private.h"
3220

33-
HINSTANCE winhttp_instance;
21+
#include <rpcproxy.h>
22+
#include <httprequest.h>
3423

35-
WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
24+
static HINSTANCE instance;
3625

3726
/******************************************************************
3827
* DllMain (winhttp.@)
@@ -42,7 +31,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
4231
switch(fdwReason)
4332
{
4433
case DLL_PROCESS_ATTACH:
45-
winhttp_instance = hInstDLL;
34+
instance = hInstDLL;
4635
DisableThreadLibraryCalls(hInstDLL);
4736
break;
4837
case DLL_PROCESS_DETACH:
@@ -169,13 +158,13 @@ HRESULT WINAPI DllCanUnloadNow(void)
169158
*/
170159
HRESULT WINAPI DllRegisterServer(void)
171160
{
172-
return __wine_register_resources( winhttp_instance );
161+
return __wine_register_resources( instance );
173162
}
174163

175164
/***********************************************************************
176165
* DllUnregisterServer (winhttp.@)
177166
*/
178167
HRESULT WINAPI DllUnregisterServer(void)
179168
{
180-
return __wine_unregister_resources( winhttp_instance );
169+
return __wine_unregister_resources( instance );
181170
}

0 commit comments

Comments
 (0)