Commit 87c72332 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

winecfg: Use BOOL type where appropriate.

parent 682c89ce
......@@ -302,7 +302,7 @@ static void ensure_drive_c_is_mapped(void)
HeapFree(GetProcessHeap(), 0, drive_c_dir);
}
int autodetect_drives(void)
BOOL autodetect_drives(void)
{
#ifdef HAVE_MNTENT_H
struct mntent *ent;
......
......@@ -244,7 +244,7 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrev, LPSTR szCmdLine, int nShow)
return 0;
}
if (initialize(hInstance) != 0) {
if (initialize(hInstance)) {
WINE_ERR("initialization failed, aborting\n");
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 void enable_size_and_color_controls (HWND dialog, BOOL enable)
......
......@@ -749,18 +749,18 @@ void PRINTERROR(void)
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);
if (res != ERROR_SUCCESS) {
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 */
settings = HeapAlloc(GetProcessHeap(), 0, sizeof(struct list));
list_init(settings);
return 0;
return FALSE;
}
......@@ -73,7 +73,7 @@ WCHAR* load_string (UINT id);
char *keypath(const char *section);
WCHAR *keypathW(const WCHAR *section);
int initialize(HINSTANCE hInstance);
BOOL initialize(HINSTANCE hInstance);
extern HKEY config_key;
/* hack for the property sheet control */
......@@ -91,7 +91,7 @@ INT_PTR CALLBACK AboutDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
/* Drive management */
BOOL load_drives(void);
int autodetect_drives(void);
BOOL autodetect_drives(void);
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};
int updating_ui;
static BOOL updating_ui;
/* convert the x11 desktop key to the new explorer config */
static void convert_x11_desktop_key(void)
......
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