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
0d01f2f4
Commit
0d01f2f4
authored
Feb 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Get rid of init variable in stgmed_buf_t.
parent
ebecd5a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
binding.c
dlls/urlmon/binding.c
+1
-5
No files found.
dlls/urlmon/binding.c
View file @
0d01f2f4
...
...
@@ -36,7 +36,6 @@ typedef struct {
BYTE
buf
[
1024
*
8
];
DWORD
size
;
BOOL
init
;
HANDLE
file
;
HRESULT
hres
;
...
...
@@ -114,8 +113,6 @@ static void fill_stgmed_buffer(stgmed_buf_t *buf)
buf
->
hres
=
IInternetProtocol_Read
(
buf
->
protocol
,
buf
->
buf
+
buf
->
size
,
sizeof
(
buf
->
buf
)
-
buf
->
size
,
&
read
);
buf
->
size
+=
read
;
if
(
read
>
0
)
buf
->
init
=
TRUE
;
}
static
void
read_protocol_data
(
stgmed_buf_t
*
stgmed_buf
)
...
...
@@ -416,7 +413,6 @@ static stgmed_buf_t *create_stgmed_buf(IInternetProtocolEx *protocol)
ret
->
IUnknown_iface
.
lpVtbl
=
&
StgMedUnkVtbl
;
ret
->
ref
=
1
;
ret
->
size
=
0
;
ret
->
init
=
FALSE
;
ret
->
file
=
INVALID_HANDLE_VALUE
;
ret
->
hres
=
S_OK
;
ret
->
cache_file
=
NULL
;
...
...
@@ -1591,7 +1587,7 @@ HRESULT bind_to_storage(IUri *uri, IBindCtx *pbc, REFIID riid, void **ppv)
if
(
FAILED
(
hres
))
return
hres
;
if
(
binding
->
hres
==
S_OK
&&
binding
->
stgmed_buf
->
init
)
{
if
(
binding
->
hres
==
S_OK
&&
binding
->
download_state
!=
BEFORE_DOWNLOAD
/* FIXME */
)
{
if
((
binding
->
state
&
BINDING_STOPPED
)
&&
(
binding
->
state
&
BINDING_LOCKED
))
IInternetProtocolEx_UnlockRequest
(
&
binding
->
protocol
->
IInternetProtocolEx_iface
);
...
...
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