Eric Pouech : setupapi: Use correct integral type.
Alexandre Julliard
julliard at winehq.org
Wed Feb 2 16:38:03 CST 2022
Module: wine
Branch: master
Commit: fd8d0babe1ba8efde1d5a251deee43994d2d8eec
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fd8d0babe1ba8efde1d5a251deee43994d2d8eec
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Wed Feb 2 12:02:45 2022 +0100
setupapi: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/setupapi/install.c | 7 ++++---
dlls/setupapi/queue.c | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c
index df39fd440b3..28ef0820ebf 100644
--- a/dlls/setupapi/install.c
+++ b/dlls/setupapi/install.c
@@ -826,7 +826,7 @@ static BOOL profile_items_callback( HINF hinf, PCWSTR field, void *arg )
{
WCHAR lnkpath[MAX_PATH];
LPWSTR cmdline=NULL, lnkpath_end;
- unsigned int name_size;
+ DWORD name_size;
INFCONTEXT name_context, context;
int attrs=0;
@@ -846,7 +846,7 @@ static BOOL profile_items_callback( HINF hinf, PCWSTR field, void *arg )
if (!(attrs & FLG_PROFITEM_GROUP) && SetupFindFirstLineW( hinf, field, L"SubDir", &context ))
{
- unsigned int subdir_size;
+ DWORD subdir_size;
if (!SetupGetStringFieldW( &context, 1, lnkpath_end, (lnkpath+MAX_PATH)-lnkpath_end, &subdir_size ))
return TRUE;
@@ -878,7 +878,8 @@ static BOOL profile_items_callback( HINF hinf, PCWSTR field, void *arg )
/* calculate command line */
if (SetupFindFirstLineW( hinf, field, L"CmdLine", &context ))
{
- unsigned int dir_len=0, subdir_size=0, filename_size=0;
+ unsigned int dir_len=0;
+ DWORD subdir_size=0, filename_size=0;
int dirid=0;
LPCWSTR dir;
LPWSTR cmdline_end;
diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c
index dc718cc66fc..e0287f63593 100644
--- a/dlls/setupapi/queue.c
+++ b/dlls/setupapi/queue.c
@@ -1275,7 +1275,7 @@ BOOL WINAPI SetupInstallFileExW( HINF hinf, PINFCONTEXT inf_context, PCWSTR sour
{
BOOL ret, absolute = (root && *root && !(style & SP_COPY_SOURCE_ABSOLUTE));
WCHAR *buffer, *p, *inf_source = NULL, dest_path[MAX_PATH];
- unsigned int len;
+ DWORD len;
TRACE("%p %p %s %s %s %x %p %p %p\n", hinf, inf_context, debugstr_w(source), debugstr_w(root),
debugstr_w(dest), style, handler, context, in_use);
More information about the wine-cvs
mailing list