Porting fixes.
This commit is contained in:
parent
ed212f728d
commit
a7c1102bac
|
@ -84,7 +84,7 @@ long drive_available_mask(char letter)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL add_drive(char letter, char *targetpath, char *label, char *serial, uint type)
|
BOOL add_drive(char letter, char *targetpath, char *label, char *serial, unsigned int type)
|
||||||
{
|
{
|
||||||
int driveIndex = letter_to_index(letter);
|
int driveIndex = letter_to_index(letter);
|
||||||
|
|
||||||
|
|
|
@ -91,11 +91,11 @@ static void set_advanced(HWND dialog)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct drive_typemap {
|
struct drive_typemap {
|
||||||
const uint sCode;
|
unsigned int sCode;
|
||||||
const char *sDesc;
|
const char *sDesc;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct drive_typemap type_pairs[] = {
|
static const struct drive_typemap type_pairs[] = {
|
||||||
{ DRIVE_FIXED, "Local hard disk" },
|
{ DRIVE_FIXED, "Local hard disk" },
|
||||||
{ DRIVE_REMOTE, "Network share" },
|
{ DRIVE_REMOTE, "Network share" },
|
||||||
{ DRIVE_REMOVABLE, "Floppy disk" },
|
{ DRIVE_REMOVABLE, "Floppy disk" },
|
||||||
|
@ -334,7 +334,7 @@ void on_remove_click(HWND dialog)
|
||||||
static void update_controls(HWND dialog)
|
static void update_controls(HWND dialog)
|
||||||
{
|
{
|
||||||
char *path;
|
char *path;
|
||||||
uint type;
|
unsigned int type;
|
||||||
char *label;
|
char *label;
|
||||||
char *serial;
|
char *serial;
|
||||||
char *device;
|
char *device;
|
||||||
|
|
Loading…
Reference in New Issue