winecfg: Use BOOL type where appropriate.
This commit is contained in:
parent
682c89ced3
commit
87c72332bb
|
@ -302,7 +302,7 @@ static void ensure_drive_c_is_mapped(void)
|
||||||
HeapFree(GetProcessHeap(), 0, drive_c_dir);
|
HeapFree(GetProcessHeap(), 0, drive_c_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
int autodetect_drives(void)
|
BOOL autodetect_drives(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_MNTENT_H
|
#ifdef HAVE_MNTENT_H
|
||||||
struct mntent *ent;
|
struct mntent *ent;
|
||||||
|
|
|
@ -244,7 +244,7 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrev, LPSTR szCmdLine, int nShow)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (initialize(hInstance) != 0) {
|
if (initialize(hInstance)) {
|
||||||
WINE_ERR("initialization failed, aborting\n");
|
WINE_ERR("initialization failed, aborting\n");
|
||||||
ExitProcess(1);
|
ExitProcess(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -425,7 +425,7 @@ static void do_apply_theme (int themeIndex, int colorIndex, int sizeIndex)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int updating_ui;
|
static BOOL updating_ui;
|
||||||
static BOOL theme_dirty;
|
static BOOL theme_dirty;
|
||||||
|
|
||||||
static void enable_size_and_color_controls (HWND dialog, BOOL enable)
|
static void enable_size_and_color_controls (HWND dialog, BOOL enable)
|
||||||
|
|
|
@ -749,18 +749,18 @@ void PRINTERROR(void)
|
||||||
WINE_TRACE("error: '%s'\n", msg);
|
WINE_TRACE("error: '%s'\n", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
int initialize(HINSTANCE hInstance)
|
BOOL initialize(HINSTANCE hInstance)
|
||||||
{
|
{
|
||||||
DWORD res = RegCreateKeyA(HKEY_CURRENT_USER, WINE_KEY_ROOT, &config_key);
|
DWORD res = RegCreateKeyA(HKEY_CURRENT_USER, WINE_KEY_ROOT, &config_key);
|
||||||
|
|
||||||
if (res != ERROR_SUCCESS) {
|
if (res != ERROR_SUCCESS) {
|
||||||
WINE_ERR("RegOpenKey failed on wine config key (%d)\n", res);
|
WINE_ERR("RegOpenKey failed on wine config key (%d)\n", res);
|
||||||
return 1;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we could probably just have the list as static data */
|
/* we could probably just have the list as static data */
|
||||||
settings = HeapAlloc(GetProcessHeap(), 0, sizeof(struct list));
|
settings = HeapAlloc(GetProcessHeap(), 0, sizeof(struct list));
|
||||||
list_init(settings);
|
list_init(settings);
|
||||||
|
|
||||||
return 0;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ WCHAR* load_string (UINT id);
|
||||||
char *keypath(const char *section);
|
char *keypath(const char *section);
|
||||||
WCHAR *keypathW(const WCHAR *section);
|
WCHAR *keypathW(const WCHAR *section);
|
||||||
|
|
||||||
int initialize(HINSTANCE hInstance);
|
BOOL initialize(HINSTANCE hInstance);
|
||||||
extern HKEY config_key;
|
extern HKEY config_key;
|
||||||
|
|
||||||
/* hack for the property sheet control */
|
/* hack for the property sheet control */
|
||||||
|
@ -91,7 +91,7 @@ INT_PTR CALLBACK AboutDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
|
||||||
|
|
||||||
/* Drive management */
|
/* Drive management */
|
||||||
BOOL load_drives(void);
|
BOOL load_drives(void);
|
||||||
int autodetect_drives(void);
|
BOOL autodetect_drives(void);
|
||||||
|
|
||||||
struct drive
|
struct drive
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,7 +55,7 @@ static const WCHAR x11_driverW[] = {'X','1','1',' ','D','r','i','v','e','r',0};
|
||||||
static const WCHAR default_resW[] = {'8','0','0','x','6','0','0',0};
|
static const WCHAR default_resW[] = {'8','0','0','x','6','0','0',0};
|
||||||
|
|
||||||
|
|
||||||
int updating_ui;
|
static BOOL updating_ui;
|
||||||
|
|
||||||
/* convert the x11 desktop key to the new explorer config */
|
/* convert the x11 desktop key to the new explorer config */
|
||||||
static void convert_x11_desktop_key(void)
|
static void convert_x11_desktop_key(void)
|
||||||
|
|
Loading…
Reference in New Issue