winemenubuilder: Prevent recursion by calling open_module_icon() instead of open_icon()
This commit is contained in:
parent
f1aea67d95
commit
e6a558ad82
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue