Commit e09fc215 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

winecfg: Use ULONG for a bitmask variable.

parent 1513dd20
......@@ -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;
}
......
......@@ -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
{
......
......@@ -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')))
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment