Commit 738c770d authored by Thomas Weidenmueller's avatar Thomas Weidenmueller Committed by Alexandre Julliard

Fixed enumerating the drive strings.

parent c58df6c6
......@@ -67,7 +67,6 @@ HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT
while (*ptr)
{
DWORD type = GetDriveTypeW(ptr);
DWORD len;
if (type == DRIVE_FIXED)
{
DWORD clusters;
......@@ -81,9 +80,7 @@ HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT
list->Drives[list->dwDriveCount].dwWantedSpace = 0;
list->dwDriveCount++;
}
len = lstrlenW(ptr);
len++;
ptr+=sizeof(WCHAR)*len;
ptr += lstrlenW(ptr) + 1;
}
return (HANDLE)list;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment