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
5e2b3131
Commit
5e2b3131
authored
Dec 07, 2002
by
Stefan Leichter
Committed by
Alexandre Julliard
Dec 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved implementation of GetDiskFreeSpaceEx from ascii to unicode.
parent
1cfc850b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
drive.c
files/drive.c
+13
-10
No files found.
files/drive.c
View file @
5e2b3131
...
...
@@ -1529,7 +1529,7 @@ BOOL WINAPI GetDiskFreeSpaceA( LPCSTR root, LPDWORD cluster_sectors,
/***********************************************************************
* GetDiskFreeSpaceEx
A
(KERNEL32.@)
* GetDiskFreeSpaceEx
W
(KERNEL32.@)
*
* This function is used to acquire the size of the available and
* total space on a logical volume.
...
...
@@ -1540,7 +1540,7 @@ BOOL WINAPI GetDiskFreeSpaceA( LPCSTR root, LPDWORD cluster_sectors,
* detailed error information.
*
*/
BOOL
WINAPI
GetDiskFreeSpaceEx
A
(
LPC
STR
root
,
BOOL
WINAPI
GetDiskFreeSpaceEx
W
(
LPCW
STR
root
,
PULARGE_INTEGER
avail
,
PULARGE_INTEGER
total
,
PULARGE_INTEGER
totalfree
)
...
...
@@ -1556,10 +1556,10 @@ BOOL WINAPI GetDiskFreeSpaceExA( LPCSTR root,
FIXME
(
"there are valid root names which are not supported yet
\n
"
);
/* ..like UNC names, for instance. */
WARN
(
"invalid root '%s'
\n
"
,
root
);
WARN
(
"invalid root '%s'
\n
"
,
debugstr_w
(
root
)
);
return
FALSE
;
}
drive
=
toupper
(
root
[
0
])
-
'A'
;
drive
=
toupper
W
(
root
[
0
])
-
'A'
;
}
if
(
!
DRIVE_GetFreeSpace
(
drive
,
&
size
,
&
available
))
return
FALSE
;
...
...
@@ -1605,18 +1605,21 @@ BOOL WINAPI GetDiskFreeSpaceExA( LPCSTR root,
}
/***********************************************************************
* GetDiskFreeSpaceEx
W
(KERNEL32.@)
* GetDiskFreeSpaceEx
A
(KERNEL32.@)
*/
BOOL
WINAPI
GetDiskFreeSpaceEx
W
(
LPCW
STR
root
,
PULARGE_INTEGER
avail
,
BOOL
WINAPI
GetDiskFreeSpaceEx
A
(
LPC
STR
root
,
PULARGE_INTEGER
avail
,
PULARGE_INTEGER
total
,
PULARGE_INTEGER
totalfree
)
{
LPSTR
xroot
;
UNICODE_STRING
rootW
;
BOOL
ret
;
xroot
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
root
);
ret
=
GetDiskFreeSpaceExA
(
xroot
,
avail
,
total
,
totalfree
);
HeapFree
(
GetProcessHeap
(),
0
,
xroot
);
if
(
root
)
RtlCreateUnicodeStringFromAsciiz
(
&
rootW
,
root
);
else
rootW
.
Buffer
=
NULL
;
ret
=
GetDiskFreeSpaceExW
(
rootW
.
Buffer
,
avail
,
total
,
totalfree
);
RtlFreeUnicodeString
(
&
rootW
);
return
ret
;
}
...
...
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