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
24b02960
Commit
24b02960
authored
Jul 29, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jul 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Handle the results from Win9x in the registry tests.
parent
54752c4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
registry.c
dlls/advapi32/tests/registry.c
+14
-7
No files found.
dlls/advapi32/tests/registry.c
View file @
24b02960
...
...
@@ -159,9 +159,8 @@ static const char *wine_debugstr_wn( const WCHAR *str, int n )
#define ADVAPI32_GET_PROC(func) \
p ## func = (void*)GetProcAddress(hadvapi32, #func); \
if(!p ## func) \
trace("GetProcAddress(%s) failed\n", #func);
p ## func = (void*)GetProcAddress(hadvapi32, #func);
static
void
InitFunctionPtrs
(
void
)
{
...
...
@@ -332,13 +331,21 @@ static void test_set_value(void)
test_hkey_main_Value_A
(
NULL
,
substring2A
,
sizeof
(
substring2A
));
test_hkey_main_Value_W
(
NULL
,
substring2W
,
sizeof
(
substring2W
));
/* only REG_SZ is supported */
/* only REG_SZ is supported
on NT
*/
ret
=
RegSetValueA
(
hkey_main
,
NULL
,
REG_BINARY
,
string2A
,
sizeof
(
string2A
));
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"RegSetValueA should have returned ERROR_INVALID_PARAMETER instead of %d
\n
"
,
ret
);
/* NT: ERROR_INVALID_PARAMETER, 9x: ERROR_SUCCESS */
ok
(
ret
==
ERROR_INVALID_PARAMETER
||
broken
(
ret
==
ERROR_SUCCESS
),
"got %d (expected ERROR_INVALID_PARAMETER or ERROR_SUCCESS)
\n
"
,
ret
);
ret
=
RegSetValueA
(
hkey_main
,
NULL
,
REG_EXPAND_SZ
,
string2A
,
sizeof
(
string2A
));
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"RegSetValueA should have returned ERROR_INVALID_PARAMETER instead of %d
\n
"
,
ret
);
/* NT: ERROR_INVALID_PARAMETER, 9x: ERROR_SUCCESS */
ok
(
ret
==
ERROR_INVALID_PARAMETER
||
broken
(
ret
==
ERROR_SUCCESS
),
"got %d (expected ERROR_INVALID_PARAMETER or ERROR_SUCCESS)
\n
"
,
ret
);
ret
=
RegSetValueA
(
hkey_main
,
NULL
,
REG_MULTI_SZ
,
string2A
,
sizeof
(
string2A
));
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"RegSetValueA should have returned ERROR_INVALID_PARAMETER instead of %d
\n
"
,
ret
);
/* NT: ERROR_INVALID_PARAMETER, 9x: ERROR_SUCCESS */
ok
(
ret
==
ERROR_INVALID_PARAMETER
||
broken
(
ret
==
ERROR_SUCCESS
),
"got %d (expected ERROR_INVALID_PARAMETER or ERROR_SUCCESS)
\n
"
,
ret
);
/* Test RegSetValueExA with a 'zero-byte' string (as Office 2003 does).
* Surprisingly enough we're supposed to get zero bytes out of it.
...
...
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