=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: setupapi: Use BOOL type where appropriate.
Alexandre Julliard
julliard at winehq.org
Thu Feb 13 13:26:10 CST 2014
Module: wine
Branch: master
Commit: 9c76ccfda124ca471b3de4d8a04aed1e15a6b9f2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9c76ccfda124ca471b3de4d8a04aed1e15a6b9f2
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Thu Feb 13 12:07:19 2014 +0100
setupapi: Use BOOL type where appropriate.
---
dlls/setupapi/devinst.c | 2 +-
dlls/setupapi/misc.c | 4 ++--
dlls/setupapi/parser.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index 5eaffd6..33dea82 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -2887,7 +2887,7 @@ BOOL WINAPI SetupDiDestroyDeviceInfoList(HDEVINFO devinfo)
}
}
- if (ret == FALSE)
+ if (!ret)
SetLastError(ERROR_INVALID_HANDLE);
return ret;
diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c
index 5f341cc..22e55d9 100644
--- a/dlls/setupapi/misc.c
+++ b/dlls/setupapi/misc.c
@@ -1458,7 +1458,7 @@ static DWORD decompress_file_lz( LPCWSTR source, LPCWSTR target )
struct callback_context
{
- int has_extracted;
+ BOOL has_extracted;
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",
wine_dbgstr_w(info->NameInCabinet));
strcpyW( info->FullTargetName, context_info->target );
- context_info->has_extracted = 1;
+ context_info->has_extracted = TRUE;
return FILEOP_DOIT;
}
default: return NO_ERROR;
diff --git a/dlls/setupapi/parser.c b/dlls/setupapi/parser.c
index cd101b7..e8c8fd3 100644
--- a/dlls/setupapi/parser.c
+++ b/dlls/setupapi/parser.c
@@ -370,7 +370,7 @@ static unsigned int PARSER_string_substW( const struct inf_file *file, const WCH
{
const WCHAR *start, *subst, *p;
unsigned int len, total = 0;
- int inside = 0;
+ BOOL inside = FALSE;
if (!buffer) size = MAX_STRING_LEN + 1;
for (p = start = text; *p; p++)
More information about the wine-cvs
mailing list