[PATCH] converted bitmask into TRUE/FALSE.
Marcus Meissner
marcus at jet.franken.de
Sat Nov 18 04:09:36 CST 2006
Hi,
The bitmask result of GMT_WR_PROT was overflowing
the BOOLEAN WriteProtected, so convert to simple
TRUE/FALSE.
Ciao, Marcus
---
dlls/ntdll/tape.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
4dd5aafb863d98795e3cf75166e0df38c684655b
diff --git a/dlls/ntdll/tape.c b/dlls/ntdll/tape.c
index c8e3cd0..4ae1f92 100644
--- a/dlls/ntdll/tape.c
+++ b/dlls/ntdll/tape.c
@@ -232,7 +232,7 @@ static NTSTATUS TAPE_GetMediaParams( int
#endif
data->PartitionCount = 1;
#ifdef HAVE_STRUCT_MTGET_MT_GSTAT
- data->WriteProtected = GMT_WR_PROT(get.mt_gstat);
+ data->WriteProtected = (GMT_WR_PROT(get.mt_gstat) != 0);
#else
data->WriteProtected = 0;
#endif
--
1.2.4
More information about the wine-patches
mailing list