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
7c77c57a
Commit
7c77c57a
authored
Mar 02, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Moved HttpProtocol::[Lock|Unlock]Request implementation to generic Protocol object.
parent
4ae60c6f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
12 deletions
+50
-12
Makefile.in
dlls/urlmon/Makefile.in
+1
-0
http.c
dlls/urlmon/http.c
+2
-12
protocol.c
dlls/urlmon/protocol.c
+44
-0
urlmon_main.h
dlls/urlmon/urlmon_main.h
+3
-0
No files found.
dlls/urlmon/Makefile.in
View file @
7c77c57a
...
...
@@ -17,6 +17,7 @@ C_SRCS = \
http.c
\
internet.c
\
mk.c
\
protocol.c
\
regsvr.c
\
sec_mgr.c
\
session.c
\
...
...
dlls/urlmon/http.c
View file @
7c77c57a
...
...
@@ -827,10 +827,7 @@ static HRESULT WINAPI HttpProtocol_LockRequest(IInternetProtocol *iface, DWORD d
TRACE
(
"(%p)->(%08x)
\n
"
,
This
,
dwOptions
);
if
(
!
InternetLockRequestFile
(
This
->
base
.
request
,
&
This
->
base
.
lock
))
WARN
(
"InternetLockRequest failed: %d
\n
"
,
GetLastError
());
return
S_OK
;
return
protocol_lock_request
(
&
This
->
base
);
}
static
HRESULT
WINAPI
HttpProtocol_UnlockRequest
(
IInternetProtocol
*
iface
)
...
...
@@ -839,14 +836,7 @@ static HRESULT WINAPI HttpProtocol_UnlockRequest(IInternetProtocol *iface)
TRACE
(
"(%p)
\n
"
,
This
);
if
(
This
->
base
.
lock
)
{
if
(
!
InternetUnlockRequestFile
(
This
->
base
.
lock
))
WARN
(
"InternetUnlockRequest failed: %d
\n
"
,
GetLastError
());
This
->
base
.
lock
=
0
;
}
return
S_OK
;
return
protocol_unlock_request
(
&
This
->
base
);
}
#undef PROTOCOL_THIS
...
...
dlls/urlmon/protocol.c
0 → 100644
View file @
7c77c57a
/*
* Copyright 2007 Misha Koshelev
* Copyright 2009 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "urlmon_main.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
urlmon
);
HRESULT
protocol_lock_request
(
Protocol
*
protocol
)
{
if
(
!
InternetLockRequestFile
(
protocol
->
request
,
&
protocol
->
lock
))
WARN
(
"InternetLockRequest failed: %d
\n
"
,
GetLastError
());
return
S_OK
;
}
HRESULT
protocol_unlock_request
(
Protocol
*
protocol
)
{
if
(
!
protocol
->
lock
)
return
S_OK
;
if
(
!
InternetUnlockRequestFile
(
protocol
->
lock
))
WARN
(
"InternetUnlockRequest failed: %d
\n
"
,
GetLastError
());
protocol
->
lock
=
0
;
return
S_OK
;
}
dlls/urlmon/urlmon_main.h
View file @
7c77c57a
...
...
@@ -98,6 +98,9 @@ typedef struct {
LONG
priority
;
}
Protocol
;
HRESULT
protocol_lock_request
(
Protocol
*
);
HRESULT
protocol_unlock_request
(
Protocol
*
);
static
inline
void
*
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
...
...
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