From 474fca1eec2fc60d049361ec5d19417284ee208e Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 13 Nov 2007 00:57:49 -0600 Subject: [PATCH] msi: Fix the condition for checking a drive. --- dlls/msi/appsearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index d1f1d7ab8d2..5baaa768541 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -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)