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
1c64c934
Commit
1c64c934
authored
Nov 10, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Sign-compare warnings fix.
parent
583e0510
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
devinst.c
dlls/setupapi/devinst.c
+3
-2
parser.c
dlls/setupapi/parser.c
+1
-1
query.c
dlls/setupapi/query.c
+2
-2
No files found.
dlls/setupapi/devinst.c
View file @
1c64c934
...
...
@@ -1349,7 +1349,8 @@ BOOL WINAPI SetupDiCreateDeviceInfoA(
static
DWORD
SETUPDI_DevNameToDevID
(
LPCWSTR
devName
)
{
LPCWSTR
ptr
;
DWORD
devNameLen
=
lstrlenW
(
devName
),
devInst
=
0
;
int
devNameLen
=
lstrlenW
(
devName
);
DWORD
devInst
=
0
;
BOOL
valid
=
TRUE
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
devName
));
...
...
@@ -1704,7 +1705,7 @@ BOOL WINAPI SetupDiGetDeviceInstanceIdW(
return
FALSE
;
}
TRACE
(
"instance ID: %s
\n
"
,
debugstr_w
(
devInfo
->
instanceId
));
if
(
DeviceInstanceIdSize
<
l
strlenW
(
devInfo
->
instanceId
)
+
1
)
if
(
DeviceInstanceIdSize
<
strlenW
(
devInfo
->
instanceId
)
+
1
)
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
if
(
RequiredSize
)
...
...
dlls/setupapi/parser.c
View file @
1c64c934
...
...
@@ -199,7 +199,7 @@ static struct line *find_line( struct inf_file *file, int section_index, const W
{
struct
section
*
section
;
struct
line
*
line
;
int
i
;
unsigned
int
i
;
if
(
section_index
<
0
||
section_index
>=
file
->
nb_sections
)
return
NULL
;
section
=
file
->
sections
[
section_index
];
...
...
dlls/setupapi/query.c
View file @
1c64c934
...
...
@@ -580,7 +580,7 @@ BOOL WINAPI SetupGetTargetPathW( HINF hinf, PINFCONTEXT context, PCWSTR section,
INFCONTEXT
ctx
;
WCHAR
*
dir
;
INT
size
;
unsigned
int
size
;
TRACE
(
"%p, %p, %s, %p, 0x%08x, %p
\n
"
,
hinf
,
context
,
debugstr_w
(
section
),
buffer
,
buffer_size
,
required_size
);
...
...
@@ -591,7 +591,7 @@ BOOL WINAPI SetupGetTargetPathW( HINF hinf, PINFCONTEXT context, PCWSTR section,
if
(
!
(
dir
=
PARSER_get_dest_dir
(
context
?
context
:
&
ctx
)))
return
FALSE
;
size
=
l
strlenW
(
dir
)
+
1
;
size
=
strlenW
(
dir
)
+
1
;
if
(
required_size
)
*
required_size
=
size
;
if
(
buffer
)
...
...
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