winemenubuilder: Prevent recursion by calling open_module_icon() instead of open_icon()

This commit is contained in:
Drew Ronneberg 2014-11-22 13:39:43 -05:00 committed by Alexandre Julliard
parent f1aea67d95
commit e6a558ad82
1 changed files with 2 additions and 2 deletions

View File

@ -1028,13 +1028,13 @@ static HRESULT open_file_type_icon(LPCWSTR szFileName, IStream **ppStream)
*comma = 0;
index = atoiW(comma + 1);
}
hr = open_icon(icon, index, FALSE, ppStream);
hr = open_module_icon(icon, index, ppStream);
}
else
{
executable = assoc_query(ASSOCSTR_EXECUTABLE, extension, openW);
if (executable)
hr = open_icon(executable, 0, FALSE, ppStream);
hr = open_module_icon(executable, 0, ppStream);
}
end: