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
d4c9440f
Commit
d4c9440f
authored
Apr 20, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsproxy: Allow multiple calls to InternetInitializeAutoProxyDll.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bc3f40e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
main.c
dlls/jsproxy/main.c
+8
-6
No files found.
dlls/jsproxy/main.c
View file @
d4c9440f
...
...
@@ -186,14 +186,16 @@ BOOL WINAPI JSPROXY_InternetInitializeAutoProxyDll( DWORD version, LPSTR tmpfile
EnterCriticalSection
(
&
cs_jsproxy
);
if
(
global_script
->
text
)
if
(
buffer
&&
buffer
->
dwStructSize
==
sizeof
(
*
buffer
)
&&
buffer
->
lpszScriptBuffer
)
{
LeaveCriticalSection
(
&
cs_jsproxy
);
return
FALSE
;
heap_free
(
global_script
->
text
);
if
(
(
global_script
->
text
=
strdupAW
(
buffer
->
lpszScriptBuffer
,
buffer
->
dwScriptBufferSize
)))
ret
=
TRUE
;
}
else
{
heap_free
(
global_script
->
text
);
if
((
global_script
->
text
=
load_script
(
tmpfile
)))
ret
=
TRUE
;
}
if
(
buffer
&&
buffer
->
dwStructSize
==
sizeof
(
*
buffer
)
&&
buffer
->
lpszScriptBuffer
&&
(
global_script
->
text
=
strdupAW
(
buffer
->
lpszScriptBuffer
,
buffer
->
dwScriptBufferSize
)))
ret
=
TRUE
;
else
if
((
global_script
->
text
=
load_script
(
tmpfile
)))
ret
=
TRUE
;
LeaveCriticalSection
(
&
cs_jsproxy
);
return
ret
;
...
...
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