Module: wine Branch: master Commit: 474fca1eec2fc60d049361ec5d19417284ee208e URL: http://source.winehq.org/git/wine.git/?a=commit;h=474fca1eec2fc60d049361ec5d...
Author: James Hawkins truiken@gmail.com Date: Tue Nov 13 00:57:49 2007 -0600
msi: Fix the condition for checking a drive.
---
dlls/msi/appsearch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index d1f1d7a..5baaa76 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)