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
b10312d0
Commit
b10312d0
authored
May 29, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix some string leaks (Valgrind).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f30f7dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
reg.c
dlls/ntdll/tests/reg.c
+5
-0
No files found.
dlls/ntdll/tests/reg.c
View file @
b10312d0
...
...
@@ -1694,6 +1694,7 @@ static void test_NtQueryKey(void)
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey"
);
status
=
pNtCreateKey
(
&
subkey
,
GENERIC_ALL
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
status
=
pNtQueryKey
(
subkey
,
KeyCachedInformation
,
&
cached_info
,
sizeof
(
cached_info
),
&
len
);
ok
(
status
==
STATUS_SUCCESS
,
"NtQueryKey Failed: 0x%08x
\n
"
,
status
);
...
...
@@ -1714,11 +1715,13 @@ static void test_NtQueryKey(void)
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey2"
);
status
=
pNtCreateKey
(
&
subkey2
,
GENERIC_ALL
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"val"
);
dw
=
64
;
status
=
pNtSetValueKey
(
subkey
,
&
str
,
0
,
REG_DWORD
,
&
dw
,
sizeof
(
dw
)
);
ok
(
status
==
STATUS_SUCCESS
,
"NtSetValueKey failed: 0x%08x
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
status
=
pNtQueryKey
(
subkey
,
KeyCachedInformation
,
&
cached_info
,
sizeof
(
cached_info
),
&
len
);
ok
(
status
==
STATUS_SUCCESS
,
"NtQueryKey Failed: 0x%08x
\n
"
,
status
);
...
...
@@ -1779,6 +1782,7 @@ static void test_notify(void)
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey"
);
status
=
pNtCreateKey
(
&
subkey
,
GENERIC_ALL
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
status
=
pNtWaitForSingleObject
(
events
[
0
],
FALSE
,
&
timeout
);
todo_wine
ok
(
status
==
STATUS_SUCCESS
,
"NtWaitForSingleObject returned %x
\n
"
,
status
);
...
...
@@ -1830,6 +1834,7 @@ static void test_notify(void)
pRtlCreateUnicodeStringFromAsciiz
(
&
str
,
"test_subkey"
);
status
=
pNtCreateKey
(
&
subkey
,
GENERIC_ALL
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_SUCCESS
,
"NtCreateKey failed: 0x%08x
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
str
);
status
=
pNtWaitForSingleObject
(
events
[
0
],
FALSE
,
&
timeout
);
ok
(
status
==
STATUS_SUCCESS
,
"NtWaitForSingleObject returned %x
\n
"
,
status
);
...
...
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