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
45c987d9
Commit
45c987d9
authored
Oct 14, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Oct 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Use RegQueryValueEx so that tests run on Win XP.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b95027f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
install.c
dlls/setupapi/tests/install.c
+12
-3
No files found.
dlls/setupapi/tests/install.c
View file @
45c987d9
...
@@ -732,7 +732,8 @@ static void check_dirid(int dirid, LPCSTR expected)
...
@@ -732,7 +732,8 @@ static void check_dirid(int dirid, LPCSTR expected)
char
buffer
[
sizeof
(
dirid_inf
)
+
11
];
char
buffer
[
sizeof
(
dirid_inf
)
+
11
];
char
path
[
MAX_PATH
],
actual
[
MAX_PATH
];
char
path
[
MAX_PATH
],
actual
[
MAX_PATH
];
LONG
ret
;
LONG
ret
;
DWORD
size
;
DWORD
size
,
type
;
HKEY
key
;
sprintf
(
buffer
,
dirid_inf
,
dirid
);
sprintf
(
buffer
,
dirid_inf
,
dirid
);
...
@@ -742,8 +743,16 @@ static void check_dirid(int dirid, LPCSTR expected)
...
@@ -742,8 +743,16 @@ static void check_dirid(int dirid, LPCSTR expected)
run_cmdline
(
"DefaultInstall"
,
128
,
path
);
run_cmdline
(
"DefaultInstall"
,
128
,
path
);
size
=
sizeof
(
actual
);
size
=
sizeof
(
actual
);
ret
=
RegGetValueA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
setupapitest"
,
"dirid"
,
actual
[
0
]
=
'\0'
;
RRF_RT_REG_SZ
|
RRF_ZEROONFAILURE
,
NULL
,
&
actual
,
&
size
);
ret
=
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
setupapitest"
,
&
key
);
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
RegQueryValueExA
(
key
,
"dirid"
,
NULL
,
&
type
,
(
BYTE
*
)
&
actual
,
&
size
);
RegCloseKey
(
key
);
if
(
type
!=
REG_SZ
)
ret
=
ERROR_FILE_NOT_FOUND
;
}
ok
(
ret
==
ERROR_SUCCESS
,
"Failed getting value for dirid %i, err=%d
\n
"
,
dirid
,
ret
);
ok
(
ret
==
ERROR_SUCCESS
,
"Failed getting value for dirid %i, err=%d
\n
"
,
dirid
,
ret
);
ok
(
!
strcmp
(
actual
,
expected
),
"Expected path for dirid %i was
\"
%s
\"
, got
\"
%s
\"\n
"
,
dirid
,
expected
,
actual
);
ok
(
!
strcmp
(
actual
,
expected
),
"Expected path for dirid %i was
\"
%s
\"
, got
\"
%s
\"\n
"
,
dirid
,
expected
,
actual
);
...
...
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