shell32/tests: Use BOOL type where appropriate.
This commit is contained in:
parent
98757d12cf
commit
44b2fd269e
|
@ -296,9 +296,9 @@ static int CALLBACK selection_callback(HWND hwnd, UINT uMsg, LPARAM lParam, LPAR
|
|||
ok(!ret, "SendMessage returned: %u\n", ret);
|
||||
|
||||
SendMessage(hwnd, WM_COMMAND, IDOK, 0);
|
||||
return TRUE;
|
||||
return 1;
|
||||
default:
|
||||
return FALSE;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -687,12 +687,12 @@ static char **myARGV;
|
|||
static char base[MAX_PATH];
|
||||
static char selfname[MAX_PATH];
|
||||
|
||||
static int init(void)
|
||||
static BOOL init(void)
|
||||
{
|
||||
myARGC = winetest_get_mainargs(&myARGV);
|
||||
if (!GetCurrentDirectoryA(sizeof(base), base)) return 0;
|
||||
if (!GetCurrentDirectoryA(sizeof(base), base)) return FALSE;
|
||||
strcpy(selfname, myARGV[0]);
|
||||
return 1;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void doChild(const char *arg)
|
||||
|
|
|
@ -1885,7 +1885,7 @@ static void test_find_executable(void)
|
|||
}
|
||||
if (rc > 32)
|
||||
{
|
||||
int equal;
|
||||
BOOL equal;
|
||||
equal=strcmp(command, argv0) == 0 ||
|
||||
/* NT4 returns an extra 0x8 character! */
|
||||
(strlen(command) == strlen(argv0)+1 && strncmp(command, argv0, strlen(argv0)) == 0);
|
||||
|
|
|
@ -3001,13 +3001,14 @@ static inline IUnknownImpl *impl_from_IUnknown(IUnknown *iface)
|
|||
static HRESULT WINAPI unk_fnQueryInterface(IUnknown *iunk, REFIID riid, void** punk)
|
||||
{
|
||||
IUnknownImpl *This = impl_from_IUnknown(iunk);
|
||||
UINT i, found;
|
||||
for(i = found = 0; This->ifaces[i].id != NULL; i++)
|
||||
UINT i;
|
||||
BOOL found = FALSE;
|
||||
for(i = 0; This->ifaces[i].id != NULL; i++)
|
||||
{
|
||||
if(IsEqualIID(This->ifaces[i].id, riid))
|
||||
{
|
||||
This->ifaces[i].count++;
|
||||
found = 1;
|
||||
found = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue