Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
05a80d0f
Commit
05a80d0f
authored
May 20, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Use existing helper to return file size.
parent
98a6b702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
filesystem.c
dlls/scrrun/filesystem.c
+5
-8
No files found.
dlls/scrrun/filesystem.c
View file @
05a80d0f
...
...
@@ -2635,6 +2635,7 @@ static HRESULT WINAPI file_get_DateLastAccessed(IFile *iface, DATE *pdate)
static
HRESULT
WINAPI
file_get_Size
(
IFile
*
iface
,
VARIANT
*
pvarSize
)
{
struct
file
*
This
=
impl_from_IFile
(
iface
);
ULARGE_INTEGER
size
;
WIN32_FIND_DATAW
fd
;
HANDLE
f
;
...
...
@@ -2648,14 +2649,10 @@ static HRESULT WINAPI file_get_Size(IFile *iface, VARIANT *pvarSize)
return
create_error
(
GetLastError
());
FindClose
(
f
);
if
(
fd
.
nFileSizeHigh
||
fd
.
nFileSizeLow
>
INT_MAX
)
{
V_VT
(
pvarSize
)
=
VT_R8
;
V_R8
(
pvarSize
)
=
((
ULONGLONG
)
fd
.
nFileSizeHigh
<<
32
)
+
fd
.
nFileSizeLow
;
}
else
{
V_VT
(
pvarSize
)
=
VT_I4
;
V_I4
(
pvarSize
)
=
fd
.
nFileSizeLow
;
}
return
S_OK
;
size
.
LowPart
=
fd
.
nFileSizeLow
;
size
.
HighPart
=
fd
.
nFileSizeHigh
;
return
variant_from_largeint
(
&
size
,
pvarSize
);
}
static
HRESULT
WINAPI
file_get_Type
(
IFile
*
iface
,
BSTR
*
pbstrType
)
...
...
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