[1/2] wininet: Implement GetDiskInfoA.
Alexandre Julliard
julliard at winehq.org
Wed May 13 05:10:35 CDT 2009
Hans Leidekker <hans at codeweavers.com> writes:
> + if ((ret = GetDiskFreeSpaceA(path, &cluster_sectors, §or_bytes, &free_clusters, &total_clusters)))
> + {
> + if (cluster_size) *cluster_size = 1;
> + if (free) *free = free_clusters * cluster_sectors * sector_bytes;
> + if (total) *total = total_clusters * cluster_sectors * sector_bytes;
> + }
You should use GetDiskFreeSpaceExA to avoid trouble on large disks.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list