forked from Mirrors/wine-wine
winemenubuilder: Avoid unneeded lstrlenA() calls.
Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
a0536cab03
commit
f18d35753a
|
@ -1468,13 +1468,13 @@ static BOOL write_desktop_entry(const char *unix_link, const char *location, con
|
||||||
wine_get_config_dir(), path, args);
|
wine_get_config_dir(), path, args);
|
||||||
fprintf(file, "Type=Application\n");
|
fprintf(file, "Type=Application\n");
|
||||||
fprintf(file, "StartupNotify=true\n");
|
fprintf(file, "StartupNotify=true\n");
|
||||||
if (descr && lstrlenA(descr))
|
if (descr && *descr)
|
||||||
fprintf(file, "Comment=%s\n", descr);
|
fprintf(file, "Comment=%s\n", descr);
|
||||||
if (workdir && lstrlenA(workdir))
|
if (workdir && *workdir)
|
||||||
fprintf(file, "Path=%s\n", workdir);
|
fprintf(file, "Path=%s\n", workdir);
|
||||||
if (icon && lstrlenA(icon))
|
if (icon && *icon)
|
||||||
fprintf(file, "Icon=%s\n", icon);
|
fprintf(file, "Icon=%s\n", icon);
|
||||||
if (wmclass && lstrlenA(wmclass))
|
if (wmclass && *wmclass)
|
||||||
fprintf(file, "StartupWMClass=%s\n", wmclass);
|
fprintf(file, "StartupWMClass=%s\n", wmclass);
|
||||||
|
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
|
Loading…
Reference in New Issue