mirror of
https://github.com/reactos/reactos.git
synced 2024-08-14 07:06:23 +00:00
Fixed enumerating the drive strings in SetupCreateDiskSpaceListW
svn path=/trunk/; revision=16512
This commit is contained in:
parent
d556da508d
commit
876fc32e53
|
@ -67,7 +67,6 @@ HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT
|
||||||
while (*ptr)
|
while (*ptr)
|
||||||
{
|
{
|
||||||
DWORD type = GetDriveTypeW(ptr);
|
DWORD type = GetDriveTypeW(ptr);
|
||||||
DWORD len;
|
|
||||||
if (type == DRIVE_FIXED)
|
if (type == DRIVE_FIXED)
|
||||||
{
|
{
|
||||||
DWORD clusters;
|
DWORD clusters;
|
||||||
|
@ -81,9 +80,7 @@ HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT
|
||||||
list->Drives[list->dwDriveCount].dwWantedSpace = 0;
|
list->Drives[list->dwDriveCount].dwWantedSpace = 0;
|
||||||
list->dwDriveCount++;
|
list->dwDriveCount++;
|
||||||
}
|
}
|
||||||
len = lstrlenW(ptr);
|
ptr += lstrlenW(ptr) + 1;
|
||||||
len++;
|
|
||||||
ptr+=sizeof(WCHAR)*len;
|
|
||||||
}
|
}
|
||||||
return (HANDLE)list;
|
return (HANDLE)list;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue