Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
402f4e9c
Commit
402f4e9c
authored
Apr 11, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix RegQueryValueExA test for win9x and ME.
parent
ce0da3e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
registry.c
dlls/advapi32/tests/registry.c
+9
-2
No files found.
dlls/advapi32/tests/registry.c
View file @
402f4e9c
...
@@ -369,13 +369,20 @@ static void test_query_value_ex(void)
...
@@ -369,13 +369,20 @@ static void test_query_value_ex(void)
size
=
0xdeadbeef
;
size
=
0xdeadbeef
;
ret
=
RegQueryValueExA
(
HKEY_CLASSES_ROOT
,
"Nonexistent Value"
,
NULL
,
&
type
,
NULL
,
&
size
);
ret
=
RegQueryValueExA
(
HKEY_CLASSES_ROOT
,
"Nonexistent Value"
,
NULL
,
&
type
,
NULL
,
&
size
);
ok
(
ret
==
ERROR_FILE_NOT_FOUND
,
"expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
ret
);
ok
(
ret
==
ERROR_FILE_NOT_FOUND
,
"expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
ret
);
ok
(
size
==
0
,
"size should have been set to 0 instead of %d
\n
"
,
size
);
/* the type parameter is cleared on Win9x, but is set to a random value on
/* the type parameter is cleared on Win9x, but is set to a random value on
* NT, so don't do this test there */
* NT, so don't do that test there. The size parameter is left untouched on Win9x
* but cleared on NT+, this can be tested on all platforms.
*/
if
(
GetVersion
()
&
0x80000000
)
if
(
GetVersion
()
&
0x80000000
)
{
ok
(
type
==
0
,
"type should have been set to 0 instead of 0x%x
\n
"
,
type
);
ok
(
type
==
0
,
"type should have been set to 0 instead of 0x%x
\n
"
,
type
);
ok
(
size
==
0xdeadbeef
,
"size should have been left untouched (0xdeadbeef)
\n
"
);
}
else
else
{
trace
(
"test_query_value_ex: type set to: 0x%08x
\n
"
,
type
);
trace
(
"test_query_value_ex: type set to: 0x%08x
\n
"
,
type
);
ok
(
size
==
0
,
"size should have been set to 0 instead of %d
\n
"
,
size
);
}
size
=
sizeof
(
buffer
);
size
=
sizeof
(
buffer
);
ret
=
RegQueryValueExA
(
HKEY_CLASSES_ROOT
,
"Nonexistent Value"
,
NULL
,
&
type
,
buffer
,
&
size
);
ret
=
RegQueryValueExA
(
HKEY_CLASSES_ROOT
,
"Nonexistent Value"
,
NULL
,
&
type
,
buffer
,
&
size
);
...
...
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