Commit 65f6474c authored by Julius Schwartzenberg's avatar Julius Schwartzenberg Committed by Alexandre Julliard

avifil32: Allow files with different extensions to be loaded.

parent 4e640f8a
......@@ -244,7 +244,7 @@ HRESULT WINAPI AVIFileOpenW(PAVIFILE *ppfile, LPCWSTR szFile, UINT uMode,
/* if no handler then try guessing it by extension */
if (lpHandler == NULL) {
if (! AVIFILE_GetFileHandlerByExtension(szFile, &clsidHandler))
return AVIERR_UNSUPPORTED;
clsidHandler = CLSID_AVIFile;
} else
clsidHandler = *lpHandler;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment