Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fd8d0bab
Commit
fd8d0bab
authored
Feb 02, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Use correct integral type.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6483bf16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
install.c
dlls/setupapi/install.c
+4
-3
queue.c
dlls/setupapi/queue.c
+1
-1
No files found.
dlls/setupapi/install.c
View file @
fd8d0bab
...
...
@@ -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
;
...
...
dlls/setupapi/queue.c
View file @
fd8d0bab
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment