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
15ab77ad
Commit
15ab77ad
authored
Jun 10, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Don't allow Wine to reproduce Windows' bugs.
parent
90d46e30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
registry.c
dlls/advapi32/tests/registry.c
+4
-4
No files found.
dlls/advapi32/tests/registry.c
View file @
15ab77ad
...
...
@@ -775,7 +775,7 @@ static void test_get_value(void)
ret
=
pRegGetValueA
(
hkey_main
,
NULL
,
"TP1_SZ"
,
RRF_RT_REG_SZ
,
&
type
,
NULL
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret=%d
\n
"
,
ret
);
/* v5.2.3790.1830 (2003 SP1) returns sTestpath1 length + 2 here. */
ok
(
size
==
strlen
(
sTestpath1
)
+
1
||
size
==
strlen
(
sTestpath1
)
+
2
,
ok
(
size
==
strlen
(
sTestpath1
)
+
1
||
broken
(
size
==
strlen
(
sTestpath1
)
+
2
)
,
"strlen(sTestpath1)=%d size=%d
\n
"
,
lstrlenA
(
sTestpath1
),
size
);
ok
(
type
==
REG_SZ
,
"type=%d
\n
"
,
type
);
...
...
@@ -816,7 +816,7 @@ static void test_get_value(void)
ret
=
pRegGetValueA
(
hkey_main
,
NULL
,
"TP1_EXP_SZ"
,
RRF_RT_REG_SZ
,
&
type
,
buf
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret=%d
\n
"
,
ret
);
/* At least v5.2.3790.1830 (2003 SP1) returns the unexpanded sTestpath1 length + 1 here. */
ok
(
(
size
==
strlen
(
expanded
)
+
1
)
||
(
size
==
strlen
(
sTestpath1
)
+
1
),
ok
(
size
==
strlen
(
expanded
)
+
1
||
broken
(
size
==
strlen
(
sTestpath1
)
+
1
),
"strlen(expanded)=%d, strlen(sTestpath1)=%d, size=%d
\n
"
,
lstrlenA
(
expanded
),
lstrlenA
(
sTestpath1
),
size
);
ok
(
type
==
REG_SZ
,
"type=%d
\n
"
,
type
);
ok
(
!
strcmp
(
expanded
,
buf
),
"expanded=
\"
%s
\"
buf=
\"
%s
\"\n
"
,
expanded
,
buf
);
...
...
@@ -826,7 +826,7 @@ static void test_get_value(void)
ret
=
pRegGetValueA
(
hkey_main
,
NULL
,
"TP2_EXP_SZ"
,
RRF_RT_REG_SZ
,
&
type
,
buf
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret=%d
\n
"
,
ret
);
/* At least v5.2.3790.1830 (2003 SP1) returns the unexpanded sTestpath2 length + 1 here. */
ok
(
(
size
==
strlen
(
expanded2
)
+
1
)
||
(
size
==
strlen
(
sTestpath2
)
+
1
),
ok
(
size
==
strlen
(
expanded2
)
+
1
||
broken
(
size
==
strlen
(
sTestpath2
)
+
1
),
"strlen(expanded2)=%d, strlen(sTestpath1)=%d, size=%d
\n
"
,
lstrlenA
(
expanded2
),
lstrlenA
(
sTestpath2
),
size
);
ok
(
type
==
REG_SZ
,
"type=%d
\n
"
,
type
);
ok
(
!
strcmp
(
expanded2
,
buf
),
"expanded2=
\"
%s
\"
buf=
\"
%s
\"\n
"
,
expanded2
,
buf
);
...
...
@@ -844,7 +844,7 @@ static void test_get_value(void)
ret
=
pRegGetValueA
(
hkey_main
,
NULL
,
"TP1_EXP_SZ"
,
RRF_RT_REG_EXPAND_SZ
|
RRF_NOEXPAND
,
NULL
,
NULL
,
&
size
);
ok
(
ret
==
ERROR_SUCCESS
,
"ret=%d
\n
"
,
ret
);
/* v5.2.3790.1830 (2003 SP1) returns sTestpath1 length + 2 here. */
ok
(
size
==
strlen
(
sTestpath1
)
+
1
||
size
==
strlen
(
sTestpath1
)
+
2
,
ok
(
size
==
strlen
(
sTestpath1
)
+
1
||
broken
(
size
==
strlen
(
sTestpath1
)
+
2
)
,
"strlen(sTestpath1)=%d size=%d
\n
"
,
lstrlenA
(
sTestpath1
),
size
);
/* Query REG_EXPAND_SZ using RRF_RT_REG_SZ|RRF_NOEXPAND (type mismatch) */
...
...
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