Fixed enumerating the drive strings in SetupCreateDiskSpaceListW Modified: trunk/reactos/lib/setupapi/diskspace.c _____
Modified: trunk/reactos/lib/setupapi/diskspace.c --- trunk/reactos/lib/setupapi/diskspace.c 2005-07-08 19:21:28 UTC (rev 16511) +++ trunk/reactos/lib/setupapi/diskspace.c 2005-07-08 19:51:37 UTC (rev 16512) @@ -67,7 +67,6 @@
while (*ptr) { DWORD type = GetDriveTypeW(ptr); - DWORD len; if (type == DRIVE_FIXED) { DWORD clusters; @@ -81,9 +80,7 @@ list->Drives[list->dwDriveCount].dwWantedSpace = 0; list->dwDriveCount++; } - len = lstrlenW(ptr); - len++; - ptr+=sizeof(WCHAR)*len; + ptr += lstrlenW(ptr) + 1; } return (HANDLE)list; }