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
c320a06e
Commit
c320a06e
authored
Sep 02, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Store file size in FileProtocol object.
parent
d442442e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
file.c
dlls/urlmon/file.c
+5
-2
No files found.
dlls/urlmon/file.c
View file @
c320a06e
...
...
@@ -26,6 +26,7 @@ typedef struct {
const
IInternetPriorityVtbl
*
lpInternetPriorityVtbl
;
HANDLE
file
;
ULONG
size
;
LONG
priority
;
LONG
ref
;
...
...
@@ -184,10 +185,12 @@ static HRESULT WINAPI FileProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
heap_free
(
url
);
if
(
GetFileSizeEx
(
This
->
file
,
&
size
))
if
(
GetFileSizeEx
(
This
->
file
,
&
size
))
{
This
->
size
=
size
.
u
.
LowPart
;
IInternetProtocolSink_ReportData
(
pOIProtSink
,
BSCF_FIRSTDATANOTIFICATION
|
BSCF_LASTDATANOTIFICATION
,
size
.
u
.
LowPart
,
size
.
u
.
LowPart
);
This
->
size
,
This
->
size
);
}
if
(
first_call
)
IInternetProtocolSink_ReportResult
(
pOIProtSink
,
S_OK
,
0
,
NULL
);
...
...
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