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
b5bcc63f
Commit
b5bcc63f
authored
Jul 19, 2014
by
Thomas Faber
Committed by
Alexandre Julliard
Jul 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Do not omit mandatory argument to DeviceIoControl.
parent
7e456b8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
builtin.c
dlls/wbemprox/builtin.c
+2
-1
No files found.
dlls/wbemprox/builtin.c
View file @
b5bcc63f
...
...
@@ -1498,6 +1498,7 @@ static UINT64 get_freespace( const WCHAR *dir, UINT64 *disksize )
ULARGE_INTEGER
free
;
DISK_GEOMETRY_EX
info
;
HANDLE
handle
;
DWORD
bytes_returned
;
free
.
QuadPart
=
512
*
1024
*
1024
;
GetDiskFreeSpaceExW
(
dir
,
NULL
,
NULL
,
&
free
);
...
...
@@ -1506,7 +1507,7 @@ static UINT64 get_freespace( const WCHAR *dir, UINT64 *disksize )
handle
=
CreateFileW
(
root
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
handle
!=
INVALID_HANDLE_VALUE
)
{
if
(
DeviceIoControl
(
handle
,
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX
,
NULL
,
0
,
&
info
,
sizeof
(
info
),
NULL
,
NULL
))
if
(
DeviceIoControl
(
handle
,
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX
,
NULL
,
0
,
&
info
,
sizeof
(
info
),
&
bytes_returned
,
NULL
))
*
disksize
=
info
.
DiskSize
.
QuadPart
;
CloseHandle
(
handle
);
}
...
...
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