mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 00:41:36 +00:00
[WINESYNC] msi: Don't consider read-only drives when enumerating volumes.
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>
This commit is contained in:
parent
8e17398c26
commit
182a2d623e
|
@ -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);
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue