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
b608e39e
Commit
b608e39e
authored
May 26, 2008
by
Dan Kegel
Committed by
Alexandre Julliard
May 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Use HeapAlloc in the capture test instead of using strdup.
parent
e787f84b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
capture.c
dlls/winmm/tests/capture.c
+2
-1
No files found.
dlls/winmm/tests/capture.c
View file @
b608e39e
...
@@ -385,7 +385,8 @@ static void wave_in_test_device(int device)
...
@@ -385,7 +385,8 @@ static void wave_in_test_device(int device)
}
}
HeapFree
(
GetProcessHeap
(),
0
,
nameW
);
HeapFree
(
GetProcessHeap
(),
0
,
nameW
);
}
else
if
(
rc
==
MMSYSERR_NOTSUPPORTED
)
{
}
else
if
(
rc
==
MMSYSERR_NOTSUPPORTED
)
{
nameA
=
strdup
(
"not supported"
);
nameA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
"not supported"
));
strcpy
(
nameA
,
"not supported"
);
}
}
trace
(
" %s:
\"
%s
\"
(%s) %d.%d (%d:%d)
\n
"
,
dev_name
(
device
),
capsA
.
szPname
,
trace
(
" %s:
\"
%s
\"
(%s) %d.%d (%d:%d)
\n
"
,
dev_name
(
device
),
capsA
.
szPname
,
...
...
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