Skip to content

Commit

Permalink
[WINESYNC] msi: Don't consider read-only drives when enumerating volu…
Browse files Browse the repository at this point in the history
…mes.

Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id 0dd0d879a1c487dcefedd44762d4ea0fcebd98fe by Pierre Schweitzer <pierre@reactos.org>
  • Loading branch information
winesync authored and learn-more committed Mar 20, 2022
1 parent 8e17398 commit 182a2d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dll/win32/msi/dialog.c
Expand Up @@ -3289,7 +3289,7 @@ static void msi_dialog_vcl_add_drives( msi_dialog *dialog, msi_control *control
WCHAR cost_text[MAX_PATH];
LPWSTR drives, ptr;
LVITEMW lvitem;
DWORD size;
DWORD size, flags;
int i = 0;

cost = msi_vcl_get_cost(dialog);
Expand All @@ -3306,13 +3306,13 @@ static void msi_dialog_vcl_add_drives( msi_dialog *dialog, msi_control *control
ptr = drives;
while (*ptr)
{
#ifdef __REACTOS__
if (GetDriveTypeW(ptr) != DRIVE_FIXED)
if (GetVolumeInformationW(ptr, NULL, 0, NULL, 0, &flags, NULL, 0) &&
flags & FILE_READ_ONLY_VOLUME)
{
ptr += lstrlenW(ptr) + 1;
continue;
}
#endif

lvitem.mask = LVIF_TEXT;
lvitem.iItem = i;
lvitem.iSubItem = 0;
Expand Down

0 comments on commit 182a2d6

Please sign in to comment.