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
0885141c
Commit
0885141c
authored
Feb 13, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Feb 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Properly handle input parameters in FileSource_GetCurFile.
parent
b90a665d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
filesource.c
dlls/quartz/filesource.c
+8
-4
No files found.
dlls/quartz/filesource.c
View file @
0885141c
...
...
@@ -637,6 +637,9 @@ static HRESULT WINAPI FileSource_GetCurFile(IFileSourceFilter * iface, LPOLESTR
TRACE
(
"(%p, %p)
\n
"
,
ppszFileName
,
pmt
);
if
(
!
ppszFileName
)
return
E_POINTER
;
/* copy file name & media type if available, otherwise clear the outputs */
if
(
This
->
pszFileName
)
{
...
...
@@ -646,12 +649,13 @@ static HRESULT WINAPI FileSource_GetCurFile(IFileSourceFilter * iface, LPOLESTR
else
*
ppszFileName
=
NULL
;
if
(
This
->
pmt
)
if
(
pmt
)
{
CopyMediaType
(
pmt
,
This
->
pmt
);
if
(
This
->
pmt
)
CopyMediaType
(
pmt
,
This
->
pmt
);
else
ZeroMemory
(
pmt
,
sizeof
(
*
pmt
));
}
else
ZeroMemory
(
pmt
,
sizeof
(
*
pmt
));
return
S_OK
;
}
...
...
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