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
1ca4ecad
Commit
1ca4ecad
authored
May 24, 2019
by
Akihiro Sagawa
Committed by
Alexandre Julliard
May 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Add RegLoadMUIString tests with REG_MUI_STRING_TRUNCATE flag.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4ef37887
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
registry.c
dlls/advapi32/tests/registry.c
+16
-0
No files found.
dlls/advapi32/tests/registry.c
View file @
1ca4ecad
...
...
@@ -3907,6 +3907,22 @@ static void test_RegLoadMUIString(void)
"got %u, expected %u
\n
"
,
size
,
text_size
);
todo_wine
ok
(
bufW
[
0
]
==
0xffff
,
"got 0x%04x, expected 0xffff
\n
"
,
bufW
[
0
]);
memset
(
bufW
,
0xff
,
sizeof
(
bufW
));
ret
=
pRegLoadMUIStringW
(
hkey
,
tz_valueW
,
bufW
,
sizeof
(
WCHAR
)
*
2
,
&
size
,
REG_MUI_STRING_TRUNCATE
,
NULL
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d, expected ERROR_INVALID_PARAMETER
\n
"
,
ret
);
todo_wine
ok
(
bufW
[
0
]
==
0xffff
,
"got 0x%04x, expected 0xffff
\n
"
,
bufW
[
0
]);
memset
(
bufW
,
0xff
,
sizeof
(
bufW
));
ret
=
pRegLoadMUIStringW
(
hkey
,
tz_valueW
,
bufW
,
sizeof
(
WCHAR
)
*
2
,
NULL
,
0xdeadbeef
,
NULL
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %d, expected ERROR_INVALID_PARAMETER
\n
"
,
ret
);
todo_wine
ok
(
bufW
[
0
]
==
0xffff
,
"got 0x%04x, expected 0xffff
\n
"
,
bufW
[
0
]);
memset
(
bufW
,
0xff
,
sizeof
(
bufW
));
ret
=
pRegLoadMUIStringW
(
hkey
,
tz_valueW
,
bufW
,
sizeof
(
WCHAR
)
*
2
,
NULL
,
REG_MUI_STRING_TRUNCATE
,
NULL
);
ok
(
ret
==
ERROR_SUCCESS
,
"got %d, expected ERROR_SUCCESS
\n
"
,
ret
);
ok
(
bufW
[
0
]
==
textW
[
0
],
"got 0x%04x, expected 0x%04x
\n
"
,
bufW
[
0
],
textW
[
0
]);
ok
(
bufW
[
1
]
==
0
,
"got 0x%04x, expected nul
\n
"
,
bufW
[
1
]);
size
=
0xdeadbeef
;
memset
(
bufW
,
0xff
,
sizeof
(
bufW
));
ret
=
pRegLoadMUIStringW
(
hkey
,
tz_valueW
,
bufW
,
ARRAY_SIZE
(
bufW
),
&
size
,
0
,
NULL
);
...
...
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