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
49b644d7
Commit
49b644d7
authored
Mar 22, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbccp32/tests: RegGetValueA is not available on Windows XP.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7f1044f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
misc.c
dlls/odbccp32/tests/misc.c
+10
-7
No files found.
dlls/odbccp32/tests/misc.c
View file @
49b644d7
...
...
@@ -420,7 +420,7 @@ void test_SQLInstallDriverEx(void)
BOOL
ret
,
sql_ret
;
DWORD
cnt
,
error_code
=
0
;
HKEY
hkey
;
DWORD
reg_ret
;
LONG
res
;
GetSystemDirectoryA
(
syspath
,
MAX_PATH
);
...
...
@@ -441,18 +441,21 @@ void test_SQLInstallDriverEx(void)
if
(
ret
)
{
re
g_ret
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
ODBC
\\
ODBCINST.INI
\\
WINE ODBC Driver"
,
0
,
KEY_READ
,
&
hkey
);
ok
(
re
g_ret
==
ERROR_SUCCESS
,
"RegOpenKeyExW failed
\n
"
);
if
(
re
g_ret
==
ERROR_SUCCESS
)
re
s
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
ODBC
\\
ODBCINST.INI
\\
WINE ODBC Driver"
,
0
,
KEY_READ
,
&
hkey
);
ok
(
re
s
==
ERROR_SUCCESS
,
"RegOpenKeyExW failed
\n
"
);
if
(
re
s
==
ERROR_SUCCESS
)
{
DWORD
type
,
size
=
MAX_PATH
;
DWORD
type
=
0xdeadbeef
,
size
=
MAX_PATH
;
char
driverpath
[
MAX_PATH
];
strcpy
(
driverpath
,
syspath
);
strcat
(
driverpath
,
"
\\
sample.dll"
);
reg_ret
=
RegGetValueA
(
hkey
,
NULL
,
"Driver"
,
RRF_RT_REG_SZ
,
&
type
,
&
path
,
&
size
);
ok
(
reg_ret
==
ERROR_SUCCESS
,
"RegGetValueA failed
\n
"
);
memset
(
path
,
0
,
sizeof
(
path
));
res
=
RegQueryValueExA
(
hkey
,
"Driver"
,
NULL
,
&
type
,
(
BYTE
*
)
path
,
&
size
);
ok
(
res
==
ERROR_SUCCESS
,
"got %d
\n
"
,
res
);
ok
(
type
==
REG_SZ
,
"got %u
\n
"
,
type
);
ok
(
size
==
strlen
(
driverpath
)
+
1
,
"got %u
\n
"
,
size
);
ok
(
!
strcmp
(
path
,
driverpath
),
"invalid path %s
\n
"
,
path
);
RegCloseKey
(
hkey
);
...
...
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