Re: [PATCH] amstream: Check params in IAMMultiMediaStreamImpl_OpenFile.
11 Oct
2012
11 Oct
'12
11:33 p.m.
On 10/12/2012 00:59, Christian Costa wrote:
--- dlls/amstream/amstream.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
- TRACE("(%p/%p)->(%s,%x)\n", This, iface, debugstr_w(pszFileName), dwFlags); + TRACE("(%p/%p)->(%s,%x)\n", This, iface, debugstr_w(filename), flags); + + if (!filename) + return E_POINTER; + + if (flags & ~(AMMSF_NOCLOCK | AMMSF_NORENDER | AMMSF_RENDERALLSTREAMS | AMMSF_RENDERTOEXISTING | AMMSF_RUN)) + return E_INVALIDARG;
This needs tests.
4900
Age (days ago)
4900
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov