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
10fcf628
Commit
10fcf628
authored
Nov 14, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Don't use hardcoded C: for the system drive.
parent
36c40e53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
query.c
dlls/setupapi/tests/query.c
+8
-2
No files found.
dlls/setupapi/tests/query.c
View file @
10fcf628
...
@@ -382,6 +382,7 @@ static void test_SetupGetSourceInfo(void)
...
@@ -382,6 +382,7 @@ static void test_SetupGetSourceInfo(void)
static
void
test_SetupGetTargetPath
(
void
)
static
void
test_SetupGetTargetPath
(
void
)
{
{
char
buffer
[
MAX_PATH
],
inf_filename
[
MAX_PATH
];
char
buffer
[
MAX_PATH
],
inf_filename
[
MAX_PATH
];
char
destfile
[
MAX_PATH
];
DWORD
required
;
DWORD
required
;
HINF
hinf
;
HINF
hinf
;
INFCONTEXT
ctx
;
INFCONTEXT
ctx
;
...
@@ -405,9 +406,14 @@ static void test_SetupGetTargetPath(void)
...
@@ -405,9 +406,14 @@ static void test_SetupGetTargetPath(void)
ret
=
SetupGetTargetPathA
(
hinf
,
&
ctx
,
NULL
,
buffer
,
sizeof
(
buffer
),
&
required
);
ret
=
SetupGetTargetPathA
(
hinf
,
&
ctx
,
NULL
,
buffer
,
sizeof
(
buffer
),
&
required
);
ok
(
ret
,
"SetupGetTargetPathA failed
\n
"
);
ok
(
ret
,
"SetupGetTargetPathA failed
\n
"
);
ok
(
required
==
10
,
"unexpected required size: %d
\n
"
,
required
);
ok
(
required
==
10
,
"unexpected required size: %d
\n
"
,
required
);
ok
(
!
lstrcmpiA
(
"C:
\\
LANCOM"
,
buffer
),
"unexpected result string: %s
\n
"
,
buffer
);
/* Retrieve the system drive from the windows directory.
* (%SystemDrive% is not available on Win9x)
*/
lstrcpyA
(
destfile
,
WIN_DIR
);
destfile
[
3
]
=
'\0'
;
lstrcatA
(
destfile
,
"LANCOM"
);
ok
(
!
lstrcmpiA
(
destfile
,
buffer
),
"unexpected result string: %s
\n
"
,
buffer
);
SetupCloseInfFile
(
hinf
);
SetupCloseInfFile
(
hinf
);
DeleteFileA
(
inf_filename
);
DeleteFileA
(
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