Commit 3603478b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winemenubuilder: Only extract icons when association changed.

parent a600d7ec
......@@ -2657,7 +2657,7 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
executableW = assoc_query(ASSOCSTR_EXECUTABLE, extensionW, openW);
if (executableW)
openWithIconA = extract_icon(executableW, 0, NULL, FALSE);
openWithIconA = compute_native_identifier(0, executableW);
friendlyAppNameW = assoc_query(ASSOCSTR_FRIENDLYAPPNAME, extensionW, openW);
if (friendlyAppNameW)
......@@ -2730,6 +2730,12 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
}
}
if (hasChanged && openWithIconA)
{
char *outputIconA = extract_icon(executableW, 0, openWithIconA, FALSE);
HeapFree(GetProcessHeap(), 0, outputIconA);
}
end:
HeapFree(GetProcessHeap(), 0, extensionA);
HeapFree(GetProcessHeap(), 0, commandW);
......
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