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
0c7ab1bd
Commit
0c7ab1bd
authored
Feb 25, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Don't crash on NT4, W2K and XP-SP1.
parent
9730b285
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
registry.c
dlls/advapi32/tests/registry.c
+12
-5
No files found.
dlls/advapi32/tests/registry.c
View file @
0c7ab1bd
...
...
@@ -304,8 +304,12 @@ static void test_set_value(void)
static
const
char
string2A
[]
=
"This
\0
Breaks
\0\0
A
\0\0\0
Lot
\0\0\0\0
"
;
static
const
char
substring2A
[]
=
"This"
;
ret
=
RegSetValueA
(
hkey_main
,
NULL
,
REG_SZ
,
NULL
,
0
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"RegSetValueA should have failed with ERROR_INVALID_PARAMETER instead of %d
\n
"
,
ret
);
if
(
0
)
{
/* Crashes on NT4, Windows 2000 and XP SP1 */
ret
=
RegSetValueA
(
hkey_main
,
NULL
,
REG_SZ
,
NULL
,
0
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"RegSetValueA should have failed with ERROR_INVALID_PARAMETER instead of %d
\n
"
,
ret
);
}
ret
=
RegSetValueA
(
hkey_main
,
NULL
,
REG_SZ
,
string1A
,
sizeof
(
string1A
));
ok
(
ret
==
ERROR_SUCCESS
,
"RegSetValueA failed: %d, GLE=%d
\n
"
,
ret
,
GetLastError
());
...
...
@@ -367,9 +371,12 @@ static void test_set_value(void)
/* 9x doesn't support W-calls, so don't test them then */
if
(
GLE
==
ERROR_CALL_NOT_IMPLEMENTED
)
return
;
ret
=
RegSetValueW
(
hkey_main
,
NULL
,
REG_SZ
,
NULL
,
0
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"RegSetValueW should have failed with ERROR_INVALID_PARAMETER instead of %d
\n
"
,
ret
);
if
(
0
)
{
/* Crashes on NT4, Windows 2000 and XP SP1 */
ret
=
RegSetValueW
(
hkey_main
,
NULL
,
REG_SZ
,
NULL
,
0
);
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"RegSetValueW should have failed with ERROR_INVALID_PARAMETER instead of %d
\n
"
,
ret
);
}
ret
=
RegSetValueW
(
hkey_main
,
NULL
,
REG_SZ
,
string1W
,
sizeof
(
string1W
));
ok
(
ret
==
ERROR_SUCCESS
,
"RegSetValueW failed: %d, GLE=%d
\n
"
,
ret
,
GetLastError
());
...
...
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