avifil32: Allow files with different extensions to be loaded.

This commit is contained in:
Julius Schwartzenberg 2010-01-09 21:05:58 +01:00 committed by Alexandre Julliard
parent 4e640f8a2b
commit 65f6474c6c
1 changed files with 1 additions and 1 deletions

View File

@ -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;