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
352d8570
Commit
352d8570
authored
Jul 24, 2008
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Jul 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: tests: Make WOW64 test pass under Win2k, fix a flag.
parent
4c64d0cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
registry.c
dlls/advapi32/tests/registry.c
+9
-5
No files found.
dlls/advapi32/tests/registry.c
View file @
352d8570
...
...
@@ -953,12 +953,14 @@ static void test_reg_open_key(void)
/* WOW64 flags */
hkResult
=
NULL
;
ret
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software"
,
0
,
KEY_READ
|
KEY_WOW64_32KEY
,
&
hkResult
);
ok
(
ret
==
ERROR_SUCCESS
&&
hkResult
!=
NULL
,
"RegOpenKeyEx with KEY_WOW64_32KEY failed (err=%u)
\n
"
,
ret
);
ok
((
ret
==
ERROR_SUCCESS
&&
hkResult
!=
NULL
)
||
broken
(
ret
==
ERROR_ACCESS_DENIED
/* NT4, win2k */
),
"RegOpenKeyEx with KEY_WOW64_32KEY failed (err=%u)
\n
"
,
ret
);
RegCloseKey
(
hkResult
);
hkResult
=
NULL
;
ret
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software"
,
0
,
KEY_READ
|
KEY_WOW64_64KEY
,
&
hkResult
);
ok
(
ret
==
ERROR_SUCCESS
&&
hkResult
!=
NULL
,
"RegOpenKeyEx with KEY_WOW64_64KEY failed (err=%u)
\n
"
,
ret
);
ok
((
ret
==
ERROR_SUCCESS
&&
hkResult
!=
NULL
)
||
broken
(
ret
==
ERROR_ACCESS_DENIED
/* NT4, win2k */
),
"RegOpenKeyEx with KEY_WOW64_64KEY failed (err=%u)
\n
"
,
ret
);
RegCloseKey
(
hkResult
);
}
...
...
@@ -989,12 +991,14 @@ static void test_reg_create_key(void)
/* WOW64 flags - open an existing key */
hkey1
=
NULL
;
ret
=
RegCreateKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software"
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WOW64_32KEY
,
NULL
,
&
hkey1
,
NULL
);
ok
(
ret
==
ERROR_SUCCESS
&&
hkey1
!=
NULL
,
"RegOpenKeyEx with KEY_WOW64_32KEY failed (err=%u)
\n
"
,
ret
);
ok
((
ret
==
ERROR_SUCCESS
&&
hkey1
!=
NULL
)
||
broken
(
ret
==
ERROR_ACCESS_DENIED
/* NT4, win2k */
),
"RegOpenKeyEx with KEY_WOW64_32KEY failed (err=%u)
\n
"
,
ret
);
RegCloseKey
(
hkey1
);
hkey1
=
NULL
;
ret
=
RegCreateKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software"
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WOW64_32KEY
,
NULL
,
&
hkey1
,
NULL
);
ok
(
ret
==
ERROR_SUCCESS
&&
hkey1
!=
NULL
,
"RegOpenKeyEx with KEY_WOW64_64KEY failed (err=%u)
\n
"
,
ret
);
ret
=
RegCreateKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software"
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WOW64_64KEY
,
NULL
,
&
hkey1
,
NULL
);
ok
((
ret
==
ERROR_SUCCESS
&&
hkey1
!=
NULL
)
||
broken
(
ret
==
ERROR_ACCESS_DENIED
/* NT4, win2k */
),
"RegOpenKeyEx with KEY_WOW64_64KEY failed (err=%u)
\n
"
,
ret
);
RegCloseKey
(
hkey1
);
}
...
...
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