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
8cacf12f
Commit
8cacf12f
authored
Oct 12, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Improve parameter checking in SetupDiInstallClass.
parent
f2c85adb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
devinst.c
dlls/setupapi/devinst.c
+10
-0
devinst.c
dlls/setupapi/tests/devinst.c
+0
-1
No files found.
dlls/setupapi/devinst.c
View file @
8cacf12f
...
...
@@ -3181,6 +3181,11 @@ BOOL WINAPI SetupDiInstallClassA(
UNICODE_STRING
FileNameW
;
BOOL
Result
;
if
(
!
InfFileName
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
!
RtlCreateUnicodeStringFromAsciiz
(
&
FileNameW
,
InfFileName
))
{
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
...
...
@@ -3283,6 +3288,11 @@ BOOL WINAPI SetupDiInstallClassW(
FIXME
(
"
\n
"
);
if
(
!
InfFileName
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
((
Flags
&
DI_NOVCP
)
&&
(
FileQueue
==
NULL
||
FileQueue
==
INVALID_HANDLE_VALUE
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
...
...
dlls/setupapi/tests/devinst.c
View file @
8cacf12f
...
...
@@ -204,7 +204,6 @@ static void testInstallClass(void)
create_inf_file
(
tmpfile
+
2
);
ret
=
pSetupDiInstallClassA
(
NULL
,
NULL
,
0
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %08x
\n
"
,
GetLastError
());
ret
=
pSetupDiInstallClassA
(
NULL
,
NULL
,
DI_NOVCP
,
NULL
);
...
...
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