Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8f108a0f
Commit
8f108a0f
authored
Jul 27, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use platform-specific versions of IActiveScriptParse methods.
parent
f3b93f26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
Makefile.in
dlls/winhttp/Makefile.in
+1
-0
session.c
dlls/winhttp/session.c
+13
-3
No files found.
dlls/winhttp/Makefile.in
View file @
8f108a0f
...
@@ -3,6 +3,7 @@ IMPORTLIB = winhttp
...
@@ -3,6 +3,7 @@ IMPORTLIB = winhttp
IMPORTS
=
uuid user32 advapi32
IMPORTS
=
uuid user32 advapi32
DELAYIMPORTS
=
oleaut32 ole32 crypt32
DELAYIMPORTS
=
oleaut32 ole32 crypt32
EXTRALIBS
=
@SOCKETLIBS@
EXTRALIBS
=
@SOCKETLIBS@
EXTRADEFS
=
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
C_SRCS
=
\
cookie.c
\
cookie.c
\
...
...
dlls/winhttp/session.c
View file @
8f108a0f
...
@@ -1828,6 +1828,16 @@ static BSTR include_pac_utils( BSTR script )
...
@@ -1828,6 +1828,16 @@ static BSTR include_pac_utils( BSTR script )
return
ret
;
return
ret
;
}
}
#ifdef _WIN64
#define IActiveScriptParse_Release IActiveScriptParse64_Release
#define IActiveScriptParse_InitNew IActiveScriptParse64_InitNew
#define IActiveScriptParse_ParseScriptText IActiveScriptParse64_ParseScriptText
#else
#define IActiveScriptParse_Release IActiveScriptParse32_Release
#define IActiveScriptParse_InitNew IActiveScriptParse32_InitNew
#define IActiveScriptParse_ParseScriptText IActiveScriptParse32_ParseScriptText
#endif
static
BOOL
run_script
(
const
BSTR
script
,
const
WCHAR
*
url
,
WINHTTP_PROXY_INFO
*
info
)
static
BOOL
run_script
(
const
BSTR
script
,
const
WCHAR
*
url
,
WINHTTP_PROXY_INFO
*
info
)
{
{
static
const
WCHAR
jscriptW
[]
=
{
'J'
,
'S'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
0
};
static
const
WCHAR
jscriptW
[]
=
{
'J'
,
'S'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
0
};
...
@@ -1862,7 +1872,7 @@ static BOOL run_script( const BSTR script, const WCHAR *url, WINHTTP_PROXY_INFO
...
@@ -1862,7 +1872,7 @@ static BOOL run_script( const BSTR script, const WCHAR *url, WINHTTP_PROXY_INFO
hr
=
IActiveScript_QueryInterface
(
engine
,
&
IID_IActiveScriptParse
,
(
void
**
)
&
parser
);
hr
=
IActiveScript_QueryInterface
(
engine
,
&
IID_IActiveScriptParse
,
(
void
**
)
&
parser
);
if
(
hr
!=
S_OK
)
goto
done
;
if
(
hr
!=
S_OK
)
goto
done
;
hr
=
IActiveScriptParse
64
_InitNew
(
parser
);
hr
=
IActiveScriptParse_InitNew
(
parser
);
if
(
hr
!=
S_OK
)
goto
done
;
if
(
hr
!=
S_OK
)
goto
done
;
hr
=
IActiveScript_SetScriptSite
(
engine
,
&
script_site
);
hr
=
IActiveScript_SetScriptSite
(
engine
,
&
script_site
);
...
@@ -1873,7 +1883,7 @@ static BOOL run_script( const BSTR script, const WCHAR *url, WINHTTP_PROXY_INFO
...
@@ -1873,7 +1883,7 @@ static BOOL run_script( const BSTR script, const WCHAR *url, WINHTTP_PROXY_INFO
if
(
!
(
full_script
=
include_pac_utils
(
script
)))
goto
done
;
if
(
!
(
full_script
=
include_pac_utils
(
script
)))
goto
done
;
hr
=
IActiveScriptParse
64
_ParseScriptText
(
parser
,
full_script
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
hr
=
IActiveScriptParse_ParseScriptText
(
parser
,
full_script
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
if
(
hr
!=
S_OK
)
goto
done
;
if
(
hr
!=
S_OK
)
goto
done
;
hr
=
IActiveScript_SetScriptState
(
engine
,
SCRIPTSTATE_STARTED
);
hr
=
IActiveScript_SetScriptState
(
engine
,
SCRIPTSTATE_STARTED
);
...
@@ -1910,7 +1920,7 @@ done:
...
@@ -1910,7 +1920,7 @@ done:
SysFreeString
(
hostname
);
SysFreeString
(
hostname
);
SysFreeString
(
func
);
SysFreeString
(
func
);
if
(
dispatch
)
IDispatch_Release
(
dispatch
);
if
(
dispatch
)
IDispatch_Release
(
dispatch
);
if
(
parser
)
I
Unknown
_Release
(
parser
);
if
(
parser
)
I
ActiveScriptParse
_Release
(
parser
);
if
(
engine
)
IActiveScript_Release
(
engine
);
if
(
engine
)
IActiveScript_Release
(
engine
);
if
(
SUCCEEDED
(
init
))
CoUninitialize
();
if
(
SUCCEEDED
(
init
))
CoUninitialize
();
if
(
!
ret
)
set_last_error
(
ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT
);
if
(
!
ret
)
set_last_error
(
ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment