setupapi: Use BOOL type where appropriate.

This commit is contained in:
Frédéric Delanoy 2014-02-13 12:07:19 +01:00 committed by Alexandre Julliard
parent 07ac635d28
commit 9c76ccfda1
3 changed files with 4 additions and 4 deletions

View File

@ -2887,7 +2887,7 @@ BOOL WINAPI SetupDiDestroyDeviceInfoList(HDEVINFO devinfo)
} }
} }
if (ret == FALSE) if (!ret)
SetLastError(ERROR_INVALID_HANDLE); SetLastError(ERROR_INVALID_HANDLE);
return ret; return ret;

View File

@ -1458,7 +1458,7 @@ static DWORD decompress_file_lz( LPCWSTR source, LPCWSTR target )
struct callback_context struct callback_context
{ {
int has_extracted; BOOL has_extracted;
LPCWSTR target; LPCWSTR target;
}; };
@ -1477,7 +1477,7 @@ static UINT CALLBACK decompress_or_copy_callback( PVOID context, UINT notificati
TRACE("Requesting extraction of cabinet file %s\n", TRACE("Requesting extraction of cabinet file %s\n",
wine_dbgstr_w(info->NameInCabinet)); wine_dbgstr_w(info->NameInCabinet));
strcpyW( info->FullTargetName, context_info->target ); strcpyW( info->FullTargetName, context_info->target );
context_info->has_extracted = 1; context_info->has_extracted = TRUE;
return FILEOP_DOIT; return FILEOP_DOIT;
} }
default: return NO_ERROR; default: return NO_ERROR;

View File

@ -370,7 +370,7 @@ static unsigned int PARSER_string_substW( const struct inf_file *file, const WCH
{ {
const WCHAR *start, *subst, *p; const WCHAR *start, *subst, *p;
unsigned int len, total = 0; unsigned int len, total = 0;
int inside = 0; BOOL inside = FALSE;
if (!buffer) size = MAX_STRING_LEN + 1; if (!buffer) size = MAX_STRING_LEN + 1;
for (p = start = text; *p; p++) for (p = start = text; *p; p++)