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
716103b1
Commit
716103b1
authored
Mar 29, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
30276291
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
registry.c
dlls/advapi32/tests/registry.c
+3
-3
No files found.
dlls/advapi32/tests/registry.c
View file @
716103b1
...
...
@@ -1755,7 +1755,7 @@ static void test_reg_query_value(void)
/* unicode - try size in WCHARS */
SetLastError
(
0xdeadbeef
);
size
=
sizeof
(
valW
)
/
sizeof
(
WCHAR
);
size
=
ARRAY_SIZE
(
valW
);
ret
=
RegQueryValueW
(
subkey
,
NULL
,
valW
,
&
size
);
ok
(
ret
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
...
...
@@ -2010,7 +2010,7 @@ static void test_reg_query_info(void)
lstrcpyW
(
expectbufferW
,
subkey_classW
);
ok
(
!
memcmp
(
classbufferW
,
expectbufferW
,
sizeof
(
classbufferW
)),
"classbufferW = %s, expected %s
\n
"
,
wine_dbgstr_wn
(
classbufferW
,
sizeof
(
classbufferW
)
/
sizeof
(
WCHAR
)),
wine_dbgstr_w
(
expectbufferW
));
wine_dbgstr_wn
(
classbufferW
,
ARRAY_SIZE
(
classbufferW
)),
wine_dbgstr_w
(
expectbufferW
));
memset
(
classbufferW
,
0x55
,
sizeof
(
classbufferW
));
classlen
=
0xdeadbeef
;
...
...
@@ -2021,7 +2021,7 @@ static void test_reg_query_info(void)
lstrcpyW
(
expectbufferW
,
subkey_classW
);
ok
(
!
memcmp
(
classbufferW
,
expectbufferW
,
sizeof
(
classbufferW
)),
"classbufferW = %s, expected %s
\n
"
,
wine_dbgstr_wn
(
classbufferW
,
sizeof
(
classbufferW
)
/
sizeof
(
WCHAR
)),
wine_dbgstr_w
(
expectbufferW
));
wine_dbgstr_wn
(
classbufferW
,
ARRAY_SIZE
(
classbufferW
)),
wine_dbgstr_w
(
expectbufferW
));
RegDeleteKeyA
(
subsubkey
,
""
);
RegCloseKey
(
subsubkey
);
...
...
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