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
fd30e695
Commit
fd30e695
authored
Oct 06, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Oct 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix RegEnumValue overflow tests for broken behaviour on XP Pro Chinese.
parent
57e00c85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
registry.c
dlls/advapi32/tests/registry.c
+5
-5
No files found.
dlls/advapi32/tests/registry.c
View file @
fd30e695
...
...
@@ -462,7 +462,7 @@ static void test_enum_value(void)
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
(
LPBYTE
)
data
,
&
data_count
);
ok
(
res
==
ERROR_MORE_DATA
,
"expected ERROR_MORE_DATA, got %d
\n
"
,
res
);
ok
(
val_count
==
2
,
"val_count set to %d
\n
"
,
val_count
);
ok
(
data_count
==
7
,
"data_count set to %d instead of 7
\n
"
,
data_count
);
ok
(
data_count
==
7
||
broken
(
data_count
==
8
)
,
"data_count set to %d instead of 7
\n
"
,
data_count
);
ok
(
type
==
REG_SZ
,
"type %d is not REG_SZ
\n
"
,
type
);
ok
(
!
strcmp
(
value
,
"xxxxxxxxxx"
),
"value set to '%s'
\n
"
,
value
);
ok
(
!
strcmp
(
data
,
"xxxxxxxxxx"
),
"data set to '%s'
\n
"
,
data
);
...
...
@@ -477,12 +477,12 @@ static void test_enum_value(void)
ok
(
res
==
ERROR_MORE_DATA
,
"expected ERROR_MORE_DATA, got %d
\n
"
,
res
);
/* Win9x returns 2 as specified by MSDN but NT returns 3... */
ok
(
val_count
==
2
||
val_count
==
3
,
"val_count set to %d
\n
"
,
val_count
);
ok
(
data_count
==
7
,
"data_count set to %d instead of 7
\n
"
,
data_count
);
ok
(
data_count
==
7
||
broken
(
data_count
==
8
)
,
"data_count set to %d instead of 7
\n
"
,
data_count
);
ok
(
type
==
REG_SZ
,
"type %d is not REG_SZ
\n
"
,
type
);
/* v5.1.2600.0 (XP Home and Professional) does not touch value or data in this case */
ok
(
!
strcmp
(
value
,
"Te"
)
||
!
strcmp
(
value
,
"xxxxxxxxxx"
),
"value set to '%s' instead of 'Te' or 'xxxxxxxxxx'
\n
"
,
value
);
ok
(
!
strcmp
(
data
,
"foobar"
)
||
!
strcmp
(
data
,
"xxxxxxx"
)
,
ok
(
!
strcmp
(
data
,
"foobar"
)
||
!
strcmp
(
data
,
"xxxxxxx"
)
||
broken
(
!
strcmp
(
data
,
"xxxxxxxx"
)
&&
data_count
==
8
),
"data set to '%s' instead of 'foobar' or 'xxxxxxx'
\n
"
,
data
);
/* overflow empty name */
...
...
@@ -494,11 +494,11 @@ static void test_enum_value(void)
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
(
LPBYTE
)
data
,
&
data_count
);
ok
(
res
==
ERROR_MORE_DATA
,
"expected ERROR_MORE_DATA, got %d
\n
"
,
res
);
ok
(
val_count
==
0
,
"val_count set to %d
\n
"
,
val_count
);
ok
(
data_count
==
7
,
"data_count set to %d instead of 7
\n
"
,
data_count
);
ok
(
data_count
==
7
||
broken
(
data_count
==
8
)
,
"data_count set to %d instead of 7
\n
"
,
data_count
);
ok
(
type
==
REG_SZ
,
"type %d is not REG_SZ
\n
"
,
type
);
ok
(
!
strcmp
(
value
,
"xxxxxxxxxx"
),
"value set to '%s'
\n
"
,
value
);
/* v5.1.2600.0 (XP Home and Professional) does not touch data in this case */
ok
(
!
strcmp
(
data
,
"foobar"
)
||
!
strcmp
(
data
,
"xxxxxxx"
)
,
ok
(
!
strcmp
(
data
,
"foobar"
)
||
!
strcmp
(
data
,
"xxxxxxx"
)
||
broken
(
!
strcmp
(
data
,
"xxxxxxxx"
)
&&
data_count
==
8
),
"data set to '%s' instead of 'foobar' or 'xxxxxxx'
\n
"
,
data
);
/* overflow data */
...
...
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