Signed-off-by: Sven Baars sven.wine@gmail.com --- dlls/quartz/filesource.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c index 5e1880c84e..9d7aba14f8 100644 --- a/dlls/quartz/filesource.c +++ b/dlls/quartz/filesource.c @@ -149,7 +149,11 @@ static BOOL process_pattern_string(const WCHAR *pattern, HANDLE file) memset(mask, 0xff, size);
if (!(pattern = wcschr(pattern, ','))) + { + heap_free(mask); + heap_free(expect); return FALSE; + } pattern++; while (!iswxdigit(*pattern) && (*pattern != ',')) pattern++;