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
3d9693fa
Commit
3d9693fa
authored
Apr 23, 2015
by
Thomas Faber
Committed by
Alexandre Julliard
Apr 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Avoid printing an unterminated string (DPH).
parent
168dd496
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
reg.c
dlls/ntdll/tests/reg.c
+2
-18
No files found.
dlls/ntdll/tests/reg.c
View file @
3d9693fa
...
...
@@ -204,22 +204,9 @@ static NTSTATUS WINAPI QueryRoutine (IN PCWSTR ValueName, IN ULONG ValueType, IN
IN
ULONG
ValueLength
,
IN
PVOID
Context
,
IN
PVOID
EntryContext
)
{
NTSTATUS
ret
=
STATUS_SUCCESS
;
int
ValueNameLength
=
0
;
LPSTR
ValName
=
0
;
trace
(
"**Test %d**
\n
"
,
CurrentTest
);
if
(
ValueName
)
{
ValueNameLength
=
lstrlenW
(
ValueName
);
ValName
=
pRtlAllocateHeap
(
GetProcessHeap
(),
0
,
ValueNameLength
);
WideCharToMultiByte
(
CP_ACP
,
0
,
ValueName
,
ValueNameLength
+
1
,
ValName
,
ValueNameLength
,
NULL
,
NULL
);
trace
(
"ValueName: %s
\n
"
,
ValName
);
}
else
trace
(
"ValueName: (null)
\n
"
);
trace
(
"**Test %d**
\n
"
,
CurrentTest
);
trace
(
"ValueName: %s
\n
"
,
wine_dbgstr_w
(
ValueName
));
switch
(
ValueType
)
{
...
...
@@ -262,9 +249,6 @@ static NTSTATUS WINAPI QueryRoutine (IN PCWSTR ValueName, IN ULONG ValueType, IN
CurrentTest
++
;
if
(
ValName
)
pRtlFreeHeap
(
GetProcessHeap
(),
0
,
ValName
);
return
ret
;
}
...
...
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