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
775d4ebd
Commit
775d4ebd
authored
Jul 10, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jul 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Avoid a crash on Win9x.
parent
6ef8569c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
query.c
dlls/setupapi/tests/query.c
+12
-7
No files found.
dlls/setupapi/tests/query.c
View file @
775d4ebd
...
...
@@ -158,13 +158,18 @@ static void test_SetupGetInfInformation(void)
ok
(
size
==
0xdeadbeef
,
"Expected size to remain unchanged
\n
"
);
/* try an invalid inf filename */
size
=
0xdeadbeef
;
SetLastError
(
0xbeefcafe
);
ret
=
SetupGetInfInformationA
(
NULL
,
INFINFO_INF_NAME_IS_ABSOLUTE
,
NULL
,
0
,
&
size
);
ok
(
ret
==
FALSE
,
"Expected SetupGetInfInformation to fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
ok
(
size
==
0xdeadbeef
,
"Expected size to remain unchanged
\n
"
);
/* do not use NULL as absolute inf filename on win9x (crash) */
if
((
GetLastError
()
!=
ERROR_BAD_PATHNAME
)
&&
/* win95 */
(
GetLastError
()
!=
ERROR_FILE_NOT_FOUND
))
/* win98 */
{
size
=
0xdeadbeef
;
SetLastError
(
0xbeefcafe
);
ret
=
SetupGetInfInformationA
(
NULL
,
INFINFO_INF_NAME_IS_ABSOLUTE
,
NULL
,
0
,
&
size
);
ok
(
ret
==
FALSE
,
"Expected SetupGetInfInformation to fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
ok
(
size
==
0xdeadbeef
,
"Expected size to remain unchanged
\n
"
);
}
create_inf_file
(
inf_filename
);
...
...
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