Michael Stefaniuc : winecfg: Use ULONG for a bitmask variable.

Alexandre Julliard julliard at winehq.org
Thu Apr 2 10:42:42 CDT 2009


Module: wine
Branch: master
Commit: e09fc21576e51de84d8bdbf993523decca144175
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e09fc21576e51de84d8bdbf993523decca144175

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Apr  2 12:05:35 2009 +0200

winecfg: Use ULONG for a bitmask variable.

---

 programs/winecfg/drive.c       |    6 +++---
 programs/winecfg/drivedetect.c |    2 +-
 programs/winecfg/driveui.c     |    2 +-
 programs/winecfg/winecfg.h     |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/programs/winecfg/drive.c b/programs/winecfg/drive.c
index 9e6077c..1afeced 100644
--- a/programs/winecfg/drive.c
+++ b/programs/winecfg/drive.c
@@ -72,9 +72,9 @@ static inline int letter_to_index(char letter)
  * so the edit dialog can display the currently used drive letter
  * alongside the available ones.
  */
-long drive_available_mask(char letter)
+ULONG drive_available_mask(char letter)
 {
-  long result = 0;
+  ULONG result = 0;
   int i;
 
   WINE_TRACE("\n");
@@ -89,7 +89,7 @@ long drive_available_mask(char letter)
   result = ~result;
   if (letter) result |= DRIVE_MASK_BIT(letter);
 
-  WINE_TRACE("finished drive letter loop with %lx\n", result);
+  WINE_TRACE("finished drive letter loop with %x\n", result);
   return result;
 }
 
diff --git a/programs/winecfg/drivedetect.c b/programs/winecfg/drivedetect.c
index 178520b..8e55f56 100644
--- a/programs/winecfg/drivedetect.c
+++ b/programs/winecfg/drivedetect.c
@@ -43,7 +43,7 @@
 WINE_DEFAULT_DEBUG_CHANNEL(winecfg);
 
 BOOL gui_mode = TRUE;
-static long working_mask = 0;
+static ULONG working_mask = 0;
 
 typedef struct
 {
diff --git a/programs/winecfg/driveui.c b/programs/winecfg/driveui.c
index acad07a..de54f21 100644
--- a/programs/winecfg/driveui.c
+++ b/programs/winecfg/driveui.c
@@ -300,7 +300,7 @@ static void on_add_click(HWND dialog)
        then invoke the directory chooser dialog. */
 
     char new = 'C'; /* we skip A and B, they are historically floppy drives */
-    long mask = ~drive_available_mask(0); /* the mask is now which drives aren't available */
+    ULONG mask = ~drive_available_mask(0); /* the mask is now which drives aren't available */
     int i, c;
 
     while (mask & (1 << (new - 'A')))
diff --git a/programs/winecfg/winecfg.h b/programs/winecfg/winecfg.h
index dcfb64d..d730d84 100644
--- a/programs/winecfg/winecfg.h
+++ b/programs/winecfg/winecfg.h
@@ -107,7 +107,7 @@ struct drive
 
 #define DRIVE_MASK_BIT(B) (1 << (toupper(B) - 'A'))
 
-long drive_available_mask(char letter);
+ULONG drive_available_mask(char letter);
 BOOL add_drive(char letter, const char *targetpath, const char *device,
                const WCHAR *label, DWORD serial, DWORD type);
 void delete_drive(struct drive *pDrive);




More information about the wine-cvs mailing list