winecfg: Use ULONG for a bitmask variable.

This commit is contained in:
Michael Stefaniuc 2009-04-02 12:05:35 +02:00 committed by Alexandre Julliard
parent 1513dd2073
commit e09fc21576
4 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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
{

View File

@ -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')))

View File

@ -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);