src/library/os/windows/execution_environment.cpp
@@ -30,8 +30,7 @@ CONTAINER_TYPE result = CONTAINER_TYPE::NONE; const DWORD dwResult = GetLogicalDriveStrings(dwSize, szLogicalDrives); //FIXME! this code missed the increment in the loop... if (dwResult > 0 && dwResult <= MAX_PATH) { char* szSingleDrive = szLogicalDrives; while (*szSingleDrive && ndrives < MAX_UNITS) { @@ -57,6 +56,8 @@ // no problem,we're just guessing } } szSingleDrive += strlen(szSingleDrive) + 1; ndrives++; } } return result;