msi: Fix the condition for checking a drive.

This commit is contained in:
James Hawkins 2007-11-13 00:57:49 -06:00 committed by Alexandre Julliard
parent bee95916f7
commit 474fca1eec
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ static UINT ACTION_SearchDirectory(MSIPACKAGE *package, MSISIGNATURE *sig,
rc = ERROR_SUCCESS;
*appValue = NULL;
for (i = 0; rc == ERROR_SUCCESS && !*appValue && i < 26; i++)
if (drives & (1 << drives))
if (drives & (1 << i))
{
pathWithDrive[0] = 'A' + i;
if (GetDriveTypeW(pathWithDrive) == DRIVE_FIXED)